Skip to content

Commit 42f3e54

Browse files
improve formatting
1 parent a91e44a commit 42f3e54

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

bpython/curtsies.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
import code
44
import logging
55
import sys
6-
import time
76
from optparse import Option
8-
from itertools import izip
97

108
import curtsies
119
import curtsies.window
@@ -22,16 +20,17 @@
2220
logger = logging.getLogger(__name__)
2321

2422

25-
repl = None # global for `from bpython.curtsies import repl`
26-
#WARNING Will be a problem if more than one repl is ever instantiated this way
23+
repl = None # global for `from bpython.curtsies import repl`
24+
# WARNING Will be a problem if more than one repl is ever instantiated this way
25+
2726

2827
def main(args=None, locals_=None, banner=None):
2928
config, options, exec_args = bpargs.parse(args, (
3029
'curtsies options', None, [
3130
Option('--log', '-L', action='store_true',
32-
help=_("log debug messages to bpython.log")),
31+
help=_("log debug messages to bpython.log")),
3332
Option('--type', '-t', action='store_true',
34-
help=_("enter lines of file as though interactively typed")),
33+
help=_("enter lines of file as though interactively typed")),
3534
]))
3635
if options.log:
3736
handler = logging.FileHandler(filename='bpython.log')
@@ -63,7 +62,7 @@ def main(args=None, locals_=None, banner=None):
6362
if not options.interactive:
6463
raise SystemExit(exit_value)
6564
else:
66-
sys.path.insert(0, '') # expected for interactive sessions (vanilla python does it)
65+
sys.path.insert(0, '') # expected for interactive sessions (vanilla python does it)
6766

6867
print(bpargs.version_banner())
6968
mainloop(config, locals_, banner, interp, paste, interactive=(not exec_args))
@@ -123,7 +122,7 @@ def process_event(e):
123122
if paste:
124123
process_event(paste)
125124

126-
process_event(None) # do a display before waiting for first event
125+
process_event(None) # do a display before waiting for first event
127126
for _ in find_iterator:
128127
e = input_generator.send(0)
129128
if e is not None:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy