Browse Source

fix pep8 failures in preparation for py3 changes

Change-Id: I4901ac8f43cb65363e942ddac342dbd0f6bef286
Aditya Prakash Vaja 5 months ago
parent
commit
011d1774df

+ 3
- 3
build_packages/is_version_bumped.py View File

@@ -26,9 +26,9 @@ if 'version' not in two_lines:
26 26
 lines = str(two_lines).split('\n')
27 27
 version1 = StrictVersion(lines[0].split('=')[1].strip())
28 28
 version2 = StrictVersion(lines[1].split('=')[1].strip())
29
-print ('version1: ', version1)
30
-print ('version2: ', version2)
29
+print('version1: ', version1)
30
+print('version2: ', version2)
31 31
 if version2 > version1:
32
-    print ('Version update correct.')
32
+    print('Version update correct.')
33 33
 else:
34 34
     sys.exit("new version string is < old version string. Build FAILED")

+ 4
- 4
build_packages/update_wiki.py View File

@@ -27,10 +27,10 @@ conf_user = sys.argv[1]
27 27
 conf_token = sys.argv[2]
28 28
 page_id = sys.argv[3]
29 29
 html_href = sys.argv[4]
30
-print ("page_id is: %(page_id)s" % {'page_id': page_id})
31
-print ("html_href is: %(html_href)s" % {'html_href': html_href})
30
+print("page_id is: %(page_id)s" % {'page_id': page_id})
31
+print("html_href is: %(html_href)s" % {'html_href': html_href})
32 32
 basic_auth = (conf_user, conf_token)
33
-print ("basic_auth is %(auth)s" % {'auth': basic_auth})
33
+print("basic_auth is %(auth)s" % {'auth': basic_auth})
34 34
 
35 35
 headers = {'content-type': 'application/json'}
36 36
 
@@ -58,4 +58,4 @@ data = ('{"id":"%(page_id)s",'
58 58
            'title': json_out['title']})
59 59
 
60 60
 p = requests.put(url, data=data, headers=headers, auth=basic_auth)
61
-print (p.json())
61
+print(p.json())

+ 1
- 1
networking_bigswitch/tests/unit/ml2/drivers/test_bigswitch_mech.py View File

@@ -97,7 +97,7 @@ class TestBigSwitchMechDriverNetworksV2(test_db_base_plugin_v2.TestNetworksV2,
97 97
             rv.getresponse.return_value = HTTPResponseMock(None)
98 98
             with self.network(name=name) as net:
99 99
                 # for debug
100
-                print (rv.request.mock_calls)
100
+                print(rv.request.mock_calls)
101 101
                 network = jsonutils.loads(rv.request.mock_calls[0][1][2])
102 102
                 self.assertIn('tenant_name', network['network'])
103 103
                 self.assertEqual('tenant_name',

Loading…
Cancel
Save