[med-svn] [Git][med-team/python-xopen][upstream] New upstream version 0.3.3

Andreas Tille gitlab at salsa.debian.org
Wed May 2 14:59:54 BST 2018


Andreas Tille pushed to branch upstream at Debian Med / python-xopen


Commits:
10b4d8c4 by Andreas Tille at 2018-04-16T14:50:48+02:00
New upstream version 0.3.3
- - - - -


2 changed files:

- setup.py
- xopen.py


Changes:

=====================================
setup.py
=====================================
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ else:
 
 setup(
 	name='xopen',
-	version='0.3.2',
+	version='0.3.3',
 	author='Marcel Martin',
 	author_email='mail at marcelm.net',
 	url='https://github.com/marcelm/xopen/',


=====================================
xopen.py
=====================================
--- a/xopen.py
+++ b/xopen.py
@@ -197,13 +197,16 @@ def xopen(filename, mode='r', compresslevel=6):
 
 	# standard input and standard output handling
 	if filename == '-':
-		return dict(
-			r=sys.stdin,
-			rt=sys.stdin,
-			rb=sys.stdin.buffer,
-			w=sys.stdout,
-			wt=sys.stdout,
-			wb=sys.stdout.buffer)[mode]
+		if not _PY3:
+			return dict(r=sys.stdin, w=sys.stdout)[mode]
+		else:
+			return dict(
+				r=sys.stdin,
+				rt=sys.stdin,
+				rb=sys.stdin.buffer,
+				w=sys.stdout,
+				wt=sys.stdout,
+				wb=sys.stdout.buffer)[mode]
 
 	if filename.endswith('.bz2'):
 		if bz2 is None:



View it on GitLab: https://salsa.debian.org/med-team/python-xopen/commit/10b4d8c4efd1389facbbbe0f0825759f55019cb6

---
View it on GitLab: https://salsa.debian.org/med-team/python-xopen/commit/10b4d8c4efd1389facbbbe0f0825759f55019cb6
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180502/91177879/attachment-0001.html>


More information about the debian-med-commit mailing list