diff options
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.patch | 25 |
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']) + |