Skip to content

Commit 248116b

Browse files
author
Anselm Kruis
committed
PEP-8 fixes
1 parent 04af2d3 commit 248116b

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

stackless_testsuite/stackless_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@
1818

1919
# get the API and nothing else
2020
from __future__ import absolute_import
21+
from stackless import * # @UnusedWildImport
2122
del absolute_import
22-
23-
from stackless import *

stackless_testsuite/v3_1/testContent.py

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@
2727
import stackless
2828

2929
# you get them by "from stackless import *"
30-
DECLARED_API = {# 'bomb': callable, # undocumented in the manual
31-
'atomic': type,
32-
# 'set_error_handler': callable, # undocumented in the manual, debug related
33-
'getmain': FUNCTION,
34-
# 'switch_trap': FUNCTION, debug related
35-
'get_thread_info': FUNCTION,
36-
'tasklet': type,
37-
'stackless': types.ModuleType,
38-
'run': FUNCTION,
39-
'schedule': FUNCTION,
40-
'getruncount': FUNCTION,
41-
'schedule_remove': FUNCTION,
42-
'getcurrent': FUNCTION,
43-
# 'enable_softswitch': FUNCTION, depends on the implementation
44-
'getcurrentid': FUNCTION, # undocumented in the manual
45-
'channel': type,
46-
}
30+
DECLARED_API = { # 'bomb': callable, # undocumented in the manual
31+
'atomic': type,
32+
# 'set_error_handler': callable, # undocumented in the manual, debug related
33+
'getmain': FUNCTION,
34+
# 'switch_trap': FUNCTION, debug related
35+
'get_thread_info': FUNCTION,
36+
'tasklet': type,
37+
'stackless': types.ModuleType,
38+
'run': FUNCTION,
39+
'schedule': FUNCTION,
40+
'getruncount': FUNCTION,
41+
'schedule_remove': FUNCTION,
42+
'getcurrent': FUNCTION,
43+
# 'enable_softswitch': FUNCTION, depends on the implementation
44+
# 'getcurrentid': FUNCTION, # undocumented in the manual
45+
'channel': type,
46+
}
4747

4848
# not imported by a "from stackless import *", but provided and documented
4949
ADDITIONAL_API = {"current": stackless.tasklet,
@@ -77,10 +77,12 @@ def testTaskletExit(self):
7777
except AttributeError:
7878
self.fail("__builtin__ does not contain TaskletExit")
7979
# Stackless Documentation says so
80-
self.assertTrue(issubclass(te, SystemExit), "TaskletExit is not a subclass of SystemExit")
80+
self.assertTrue(
81+
issubclass(te, SystemExit), "TaskletExit is not a subclass of SystemExit")
8182

8283
# create the remaining tests dynamically
83-
create_type_tests_for_module(locals(), stackless, DECLARED_API, ADDITIONAL_API)
84+
create_type_tests_for_module(
85+
locals(), stackless, DECLARED_API, ADDITIONAL_API)
8486

8587

8688
if __name__ == "__main__":

0 commit comments

Comments
 (0)