Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
pygobject
Commits
6a58edbf
Commit
6a58edbf
authored
Mar 22, 2012
by
Johan Dahlin
Committed by
Johan Dahlin
Mar 22, 2012
Browse files
PEP8: Add missing whitespace after : and ,
https://bugzilla.gnome.org/show_bug.cgi?id=672627
parent
a8d361e6
Changes
5
Hide whitespace changes
Inline
Side-by-side
demos/gtk-demo/demos/Tree View/liststore.py
View file @
6a58edbf
...
...
@@ -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 :=)"
)]
...
...
demos/gtk-demo/demos/appwindow.py
View file @
6a58edbf
...
...
@@ -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
...
...
tests/test_everything.py
View file @
6a58edbf
...
...
@@ -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
...
...
tests/test_gi.py
View file @
6a58edbf
...
...
@@ -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)"
,
...
...
tests/test_overrides.py
View file @
6a58edbf
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment