diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-16 09:32:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-16 09:32:48 +0100 |
commit | 9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch) | |
tree | b690ddc0ca30f1472887edbb0b8313629bfcbbb2 /dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_endpoints_checker_py-3.9.patch | |
parent | b17a3ef12038de50228bade1f05502c74e135321 (diff) |
gentoo resync : 16.09.2020
Diffstat (limited to 'dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_endpoints_checker_py-3.9.patch')
-rw-r--r-- | dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_endpoints_checker_py-3.9.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_endpoints_checker_py-3.9.patch b/dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_endpoints_checker_py-3.9.patch new file mode 100644 index 000000000000..3fd67591c098 --- /dev/null +++ b/dev-libs/aws-sdk-cpp/files/aws-sdk-cpp-upgrade_scripts_endpoints_checker_py-3.9.patch @@ -0,0 +1,29 @@ +--- a/scripts/endpoints_checker.py (original) ++++ b/scripts/endpoints_checker.py (refactored) +@@ -64,8 +64,8 @@ + strippedContent = RemoveCPPComments(content); + match = ScanContent(strippedContent); + if match: +- print inputFile; +- print "..." + strippedContent[match.start() : match.end()] + "..."; ++ print(inputFile); ++ print("..." + strippedContent[match.start() : match.end()] + "..."); + return True; + + return False; +@@ -109,7 +109,7 @@ + assert ScanContent("\"cn-north-2 doesn't exist\"") == None; + + ###################Test End###################################### +-print "Start checking hard coded endpoints in source files..."; ++print("Start checking hard coded endpoints in source files..."); + exitCode = 0; + RootDir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))); + for root, dirnames, fileNames in os.walk(RootDir): +@@ -117,5 +117,5 @@ + if fileName.endswith(('.h', '.cpp')): + targetFile = os.path.join(root, fileName); + exitCode |= CheckFile(targetFile); +-print "Finished checking hard coded endpoints in source files with exit code",exitCode,"."; ++print("Finished checking hard coded endpoints in source files with exit code",exitCode,"."); + exit(exitCode); |