We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5e362 commit f30daa9Copy full SHA for f30daa9
bpython/repl.py
@@ -310,7 +310,10 @@ def startup(self):
310
filename = os.environ.get('PYTHONSTARTUP')
311
if filename and os.path.isfile(filename):
312
with open(filename, 'r') as f:
313
- self.interp.runsource(f.read(), filename, 'exec', encode=False)
+ if py3:
314
+ self.interp.runsource(f.read(), filename, 'exec')
315
+ else:
316
+ self.interp.runsource(f.read(), filename, 'exec', encode=False)
317
318
def attr_matches(self, text):
319
"""Taken from rlcompleter.py and bent to my will."""
0 commit comments