Skip to content
Commits on Source (6)
python-xopen (0.3.3-1) UNRELEASED; urgency=medium
* New upstream version
* Point Vcs fields to salsa.debian.org
* Standards-Version: 4.1.4
* Testsuite: autopkgtest-pkg-python
-- Andreas Tille <tille@debian.org> Mon, 16 Apr 2018 14:50:48 +0200
python-xopen (0.3.2-1) unstable; urgency=medium
* New upstream version
......
......@@ -2,6 +2,7 @@ Source: python-xopen
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Uploaders: Andreas Tille <tille@debian.org>
Section: python
Testsuite: autopkgtest-pkg-python
Priority: optional
Build-Depends: debhelper (>= 11~),
dh-python,
......@@ -13,9 +14,9 @@ Build-Depends: debhelper (>= 11~),
python3-setuptools,
python3-nose,
python3-bz2file
Standards-Version: 4.1.3
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-xopen.git
Vcs-Git: https://anonscm.debian.org/git/debian-med/python-xopen.git
Standards-Version: 4.1.4
Vcs-Browser: https://salsa.debian.org/med-team/python-xopen
Vcs-Git: https://salsa.debian.org/med-team/python-xopen.git
Homepage: https://github.com/marcelm/xopen
X-Python-Version: >= 2.6
X-Python3-Version: >= 3.2
......
......@@ -15,7 +15,7 @@ else:
setup(
name='xopen',
version='0.3.2',
version='0.3.3',
author='Marcel Martin',
author_email='mail@marcelm.net',
url='https://github.com/marcelm/xopen/',
......
......@@ -197,6 +197,9 @@ def xopen(filename, mode='r', compresslevel=6):
# standard input and standard output handling
if filename == '-':
if not _PY3:
return dict(r=sys.stdin, w=sys.stdout)[mode]
else:
return dict(
r=sys.stdin,
rt=sys.stdin,
......