Commit 6a58edbf authored by Johan Dahlin's avatar Johan Dahlin Committed by Johan Dahlin
Browse files

PEP8: Add missing whitespace after : and ,

https://bugzilla.gnome.org/show_bug.cgi?id=672627
parent a8d361e6
......@@ -47,7 +47,7 @@ data = [Bug(False, 60482, "Normal", "scrollable notebooks and hidden tabs"),
Bug(False, 56925, "Normal", "Gtkcalender size"),
Bug(False, 56221, "Normal", "Selectable label needs right-click copy menu"),
Bug(True, 50939, "Normal", "Add shift clicking to GtkTextView"),
Bug(False, 6112, "Enhancement","netscape-like collapsable toolbars"),
Bug(False, 6112, "Enhancement", "netscape-like collapsable toolbars"),
Bug(False, 1, "Normal", "First bug :=)")]
......
......@@ -155,7 +155,7 @@ action_entries = (
"Open first file", # tooltip
activate_action),
("Save", Gtk.STOCK_SAVE, # name, stock id
"_Save","<control>S", # label, accelerator
"_Save", "<control>S", # label, accelerator
"Save current file", # tooltip
activate_action),
("SaveAs", Gtk.STOCK_SAVE, # name, stock id
......
......@@ -522,9 +522,9 @@ class TestTortureProfile(unittest.TestCase):
start_time = time.clock()
for i in range(10000):
(y,z,q) = object_.torture_signature_0(5000,
"Torture Test 1",
12345)
(y, z, q) = object_.torture_signature_0(5000,
"Torture Test 1",
12345)
end_time = time.clock()
delta_time = end_time - start_time
......@@ -535,9 +535,8 @@ class TestTortureProfile(unittest.TestCase):
start_time = time.clock()
for i in range(10000):
(y,z,q) = Everything.TestObj().torture_signature_0(5000,
"Torture Test 2",
12345)
(y, z, q) = Everything.TestObj().torture_signature_0(
5000, "Torture Test 2", 12345)
end_time = time.clock()
delta_time = end_time - start_time
......@@ -548,9 +547,8 @@ class TestTortureProfile(unittest.TestCase):
start_time = time.clock()
for i in range(10000):
try:
(y,z,q) = object_.torture_signature_1(5000,
"Torture Test 3",
12345)
(y, z, q) = object_.torture_signature_1(
5000, "Torture Test 3", 12345)
except:
pass
end_time = time.clock()
......@@ -566,11 +564,8 @@ class TestTortureProfile(unittest.TestCase):
userdata = [1, 2, 3, 4]
start_time = time.clock()
for i in range(10000):
(y,z,q) = Everything.test_torture_signature_2(5000,
callback,
userdata,
"Torture Test 4",
12345)
(y, z, q) = Everything.test_torture_signature_2(
5000, callback, userdata, "Torture Test 4", 12345)
end_time = time.clock()
delta_time = end_time - start_time
total_time += delta_time
......
......@@ -1935,7 +1935,7 @@ class TestKeywordArgs(unittest.TestCase):
self.assertRaisesMessage(TypeError, "int_three_in_three_out() takes exactly 3 arguments (0 given)",
GIMarshallingTests.int_three_in_three_out, *(), **{})
self.assertRaisesMessage(TypeError, "int_three_in_three_out() takes exactly 3 non-keyword arguments (0 given)",
GIMarshallingTests.int_three_in_three_out, *(), **{'c':4})
GIMarshallingTests.int_three_in_three_out, *(), **{'c': 4})
# test too many args
self.assertRaisesMessage(TypeError, "int_three_in_three_out() takes exactly 3 arguments (4 given)",
......
......@@ -195,7 +195,7 @@ class TestGLib(unittest.TestCase):
"bandwidth": GLib.Variant('x', 8),
"code-rate-hp": GLib.Variant('d', 2.0 / 3.0),
"constellation": GLib.Variant('s', "QAM16"),
"guard-interval": GLib.Variant('u', 4),}
"guard-interval": GLib.Variant('u', 4)}
variant = GLib.Variant('a{sv}', obj)
self.assertEqual(variant.get_type_string(), 'a{sv}')
self.assertEqual(variant.unpack(), {"frequency": 738000000,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment