summaryrefslogtreecommitdiff
blob: 12b910425bf587efe621a4422c867c1c3e3484e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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'])