summaryrefslogtreecommitdiff
path: root/dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_generate_sdks_py-3.9.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_generate_sdks_py-3.9.patch
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_generate_sdks_py-3.9.patch')
-rw-r--r--dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_generate_sdks_py-3.9.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_generate_sdks_py-3.9.patch b/dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_generate_sdks_py-3.9.patch
new file mode 100644
index 000000000000..12b910425bf5
--- /dev/null
+++ b/dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_generate_sdks_py-3.9.patch
@@ -0,0 +1,25 @@
+--- a/scripts/generate_sdks.py (original)
++++ b/scripts/generate_sdks.py (refactored)
+@@ -94,7 +94,7 @@
+ with zipfile.ZipFile(output.strip().decode('utf-8'), 'r') as zip:
+ zip.extractall(outputDir)
+ except EnvironmentError as ex:
+- print('Error generating sdk {} with error {}'.format(sdk, ex))
++ print(('Error generating sdk {} with error {}'.format(sdk, ex)))
+
+ def Main():
+ arguments = ParseArguments()
+@@ -105,11 +105,11 @@
+ sdks = DiscoverAllAvailableSDKs(arguments['pathToApiDefinitions'])
+
+ if arguments['listAll']:
+- for key, value in sdks.iteritems():
++ for key, value in sdks.items():
+ print(value)
+
+ if arguments['serviceName']:
+- print('Generating {} api version {}.'.format(arguments['serviceName'], arguments['apiVersion']))
++ print(('Generating {} api version {}.'.format(arguments['serviceName'], arguments['apiVersion'])))
+ key = '{}-{}'.format(arguments['serviceName'], arguments['apiVersion'])
+ GenerateSdk(arguments['pathToGenerator'], sdks[key], arguments['outputLocation'], arguments['namespace'], arguments['licenseText'], arguments['standalone'], arguments['enableVirtualOperations'])
+