Skip to content

Commit f74ad98

Browse files
committed
Formatting
1 parent 275a6e7 commit f74ad98

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ def __getattr__(self, name):
221221

222222
def _create_module(self, spec):
223223
spec = self.loader.create_module(spec)
224-
if getattr(spec, "origin", None) is not None and spec.origin != "builtin":
224+
if (
225+
getattr(spec, "origin", None) is not None
226+
and spec.origin != "builtin"
227+
):
225228
self.watcher.track_module(spec.origin)
226229
return spec
227230

bpython/repl.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ def runsource(self, source, filename=None, symbol="single", encode="auto"):
130130
files should always already have an encoding comment or be ASCII.
131131
By default an encoding line will be added if no filename is given.
132132
133-
In Python 3, source must be a unicode string
134-
In Python 2, source may be latin-1 bytestring or unicode string,
135-
following the interface of code.InteractiveInterpreter.
133+
source must be a string
136134
137135
Because adding an encoding comment to a unicode string in Python 2
138136
would cause a syntax error to be thrown which would reference code

bpython/test/test_crashers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ def processExited(self, reason):
9595
"--config",
9696
str(TEST_CONFIG),
9797
),
98-
env=dict(TERM="vt100", LANG=os.environ.get("LANG", "")),
98+
env={
99+
"TERM": "vt100",
100+
"LANG": os.environ.get("LANG", ""),
101+
},
99102
usePTY=(master, slave, os.ttyname(slave)),
100103
)
101104
return result

0 commit comments

Comments
 (0)