Skip to content

Commit

Permalink
Fix for PY2
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 5, 2018
1 parent 58001de commit 0fcc8de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gdown/__init__.py
Expand Up @@ -155,7 +155,10 @@ def main():
args = parser.parse_args()

if args.output == '-':
args.output = sys.stdout.buffer
if six.PY3:
args.output = sys.stdout.buffer
else:
args.output = sys.stdout

if args.id:
url = 'https://drive.google.com/uc?id={id}'.format(id=args.url_or_id)
Expand Down

0 comments on commit 0fcc8de

Please sign in to comment.