Skip to content

Commit 26b8daf

Browse files
committed
PEP8
1 parent dd0a489 commit 26b8daf

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

bpython/autocomplete.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ def list_attributes(self, obj):
330330
return dir(obj)
331331

332332

333-
334333
class DictKeyCompletion(BaseCompletionType):
335334

336335
def matches(self, cursor_offset, line, **kwargs):

bpython/patch_linecache.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import linecache
22

3+
34
class BPythonLinecache(dict):
45
"""Replaces the cache dict in the standard-library linecache module,
56
to also remember (in an unerasable way) bpython console input."""
@@ -29,7 +30,7 @@ def remember_bpython_input(self, source):
2930
a fake filename to use to retrieve it later."""
3031
filename = '<bpython-input-%s>' % len(self.bpython_history)
3132
self.bpython_history.append((len(source), None,
32-
source.splitlines(True), filename))
33+
source.splitlines(True), filename))
3334
return filename
3435

3536
def __getitem__(self, key):
@@ -50,6 +51,7 @@ def __delitem__(self, key):
5051
if not self.is_bpython_filename(key):
5152
return super(BPythonLinecache, self).__delitem__(key)
5253

54+
5355
def _bpython_clear_linecache():
5456
try:
5557
bpython_history = linecache.cache.bpython_history
@@ -58,11 +60,13 @@ def _bpython_clear_linecache():
5860
linecache.cache = BPythonLinecache()
5961
linecache.cache.bpython_history = bpython_history
6062

63+
6164
# Monkey-patch the linecache module so that we're able
6265
# to hold our command history there and have it persist
6366
linecache.cache = BPythonLinecache(linecache.cache)
6467
linecache.clearcache = _bpython_clear_linecache
6568

69+
6670
def filename_for_console_input(code_string):
6771
"""Remembers a string of source code, and returns
6872
a fake filename to use to retrieve it later."""

bpython/repl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,6 @@ def do_pastebin(self, s):
766766
self.prev_removal_url), 10)
767767
return self.prev_pastebin_url
768768

769-
770769
self.interact.notify(_('Posting data to pastebin...'))
771770
try:
772771
paste_url, removal_url = self.paster.paste(s)

0 commit comments

Comments
 (0)