[pygobject] PEP8: Add missing whitespace after : and ,
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] PEP8: Add missing whitespace after : and ,
- Date: Thu, 22 Mar 2012 14:33:38 +0000 (UTC)
commit 6a58edbf11c612e9a14347b1556d1e0dd2ec1823
Author: Johan Dahlin <johan gnome org>
Date: Thu Mar 22 10:52:05 2012 -0300
PEP8: Add missing whitespace after : and ,
https://bugzilla.gnome.org/show_bug.cgi?id=672627
demos/gtk-demo/demos/Tree View/liststore.py | 2 +-
demos/gtk-demo/demos/appwindow.py | 2 +-
tests/test_everything.py | 23 +++++++++--------------
tests/test_gi.py | 2 +-
tests/test_overrides.py | 2 +-
5 files changed, 13 insertions(+), 18 deletions(-)
---
diff --git a/demos/gtk-demo/demos/Tree View/liststore.py b/demos/gtk-demo/demos/Tree View/liststore.py
index 474289a..4238d85 100644
--- a/demos/gtk-demo/demos/Tree View/liststore.py
+++ b/demos/gtk-demo/demos/Tree View/liststore.py
@@ -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 :=)")]
diff --git a/demos/gtk-demo/demos/appwindow.py b/demos/gtk-demo/demos/appwindow.py
index 5a01d32..e09b029 100644
--- a/demos/gtk-demo/demos/appwindow.py
+++ b/demos/gtk-demo/demos/appwindow.py
@@ -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
diff --git a/tests/test_everything.py b/tests/test_everything.py
index 6b2b299..84b7f90 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -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
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 5546037..08080f8 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -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)",
diff --git a/tests/test_overrides.py b/tests/test_overrides.py
index 315226e..2e63815 100644
--- a/tests/test_overrides.py
+++ b/tests/test_overrides.py
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]