Commit 1dcdf69f by Celine Mercier

export: fixed a bug introduced in version 3.0.0b28

parent dec114ee
......@@ -276,11 +276,11 @@ def open_uri(uri,
iseq = urib
objclass = bytes
else: # TODO update uopen to be able to write?
if urip.path == b'-':
if not urip.path or urip.path == b'-':
file = sys.stdout.buffer
elif urip.path :
file = open(urip.path, 'wb')
if file is not None:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment