Skip to content

Commit a82e6ef

Browse files
committed
Merged in andreif/bpython (pull request bpython#11)
2 parents f56a825 + d2baba7 commit a82e6ef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.hgignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ tags
55
_trial_temp
66
.mo
77
build/*
8+
.idea/

bpython/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,8 @@ def main(args=None, locals_=None, banner=None):
18831883
# Fake stdout data so everything's still visible after exiting
18841884
if config.flush_output and not options.quiet:
18851885
sys.stdout.write(o)
1886-
sys.stdout.flush()
1886+
if hasattr(sys.stdout, 'flush'):
1887+
sys.stdout.flush()
18871888

18881889

18891890
if __name__ == '__main__':

0 commit comments

Comments
 (0)