mirror of
https://github.com/not-kennethreitz/blindspin.git
synced 2026-06-05 23:10:18 +00:00
use sys.stdout instead of print to support Py2.7
This commit is contained in:
@@ -38,7 +38,8 @@ class Spinner(object):
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
self.stop()
|
||||
if self.beep:
|
||||
print("\7", end='', flush=True)
|
||||
sys.stdout.write('\7')
|
||||
sys.stdout.flush()
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user