From e3afb19e54d5b5a73cbd1442f2c7b650096ced4d Mon Sep 17 00:00:00 2001 From: Juan Treminio <50673996+jtreminio-dropbox@users.noreply.github.com> Date: Mon, 16 Sep 2024 11:05:37 -0500 Subject: [PATCH] Python: Shorting debug statement to prevent Black diff (#428) --- sdks/python/dropbox_sign/configuration.py | 4 +--- sdks/python/templates/configuration.mustache | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sdks/python/dropbox_sign/configuration.py b/sdks/python/dropbox_sign/configuration.py index d89eb27b9..9e397bd27 100644 --- a/sdks/python/dropbox_sign/configuration.py +++ b/sdks/python/dropbox_sign/configuration.py @@ -432,9 +432,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 3.0.0\n" - "SDK Package Version: 1.6-dev".format( - env=sys.platform, pyversion=sys.version - ) + "SDK Version: 1.6-dev".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/sdks/python/templates/configuration.mustache b/sdks/python/templates/configuration.mustache index 009658941..798fc0efb 100644 --- a/sdks/python/templates/configuration.mustache +++ b/sdks/python/templates/configuration.mustache @@ -557,7 +557,12 @@ conf = {{{packageName}}}.Configuration( "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: {{version}}\n"\ +{{^useCustomTemplateCode}} "SDK Package Version: {{packageVersion}}".\ +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} + "SDK Version: {{packageVersion}}".\ +{{/useCustomTemplateCode}} format(env=sys.platform, pyversion=sys.version) def get_host_settings(self):