Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
cli: encoding-related fixes for --debug option
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-fg committed Mar 9, 2013
1 parent 527adb2 commit 0ce1049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
setup(

name='python-skydrive',
version='13.03.15',
version='13.03.16',
author='Mike Kazantsev, Antonio Chen',
author_email='mk.fraggod@gmail.com',
license='WTFPL',
Expand Down
4 changes: 2 additions & 2 deletions skydrive/cli_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def print_result(data, file, indent='', indent_level=' '*2):
if not isinstance(v, (list, dict)): # peek to display simple types inline
print_result(v, file=file, indent=' ')
else:
print(file=file)
print('', file=file)
print_result(v, file=file, indent=indent+indent_level)
else:
print(indent + decode_obj(data, force=True), file=file)
Expand Down Expand Up @@ -317,7 +317,7 @@ def recurse(obj_id):

if res is not None: print_result(res, file=sys.stdout)
if optz.debug and xres is not None:
buff = io.BytesIO()
buff = io.StringIO()
print_result(xres, file=buff)
log.debug('Call result:\n{0}\n{1}{0}'.format('-' * 20, buff.getvalue()))

Expand Down

0 comments on commit 0ce1049

Please sign in to comment.