diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-12-01 17:44:24 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-12-01 17:44:24 +0300 |
commit | c089c4500b0b78acf03ee5405ad250a84b0dfa66 (patch) | |
tree | 23870848d194569aff6e0e4e41bc7907960b1af1 /debian/patches/bdist-wininst-notfound.diff | |
parent | 377002e7300431b68f3548d9fd2c7f99cf883939 (diff) | |
download | python3.7-debian.tar.gz |
Import python3.7 (3.7.5-2)debian/3.7.5-2debian
Diffstat (limited to 'debian/patches/bdist-wininst-notfound.diff')
-rw-r--r-- | debian/patches/bdist-wininst-notfound.diff | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/debian/patches/bdist-wininst-notfound.diff b/debian/patches/bdist-wininst-notfound.diff index 27e9024..a716bf3 100644 --- a/debian/patches/bdist-wininst-notfound.diff +++ b/debian/patches/bdist-wininst-notfound.diff @@ -5,15 +5,14 @@ Index: b/Lib/distutils/command/bdist_wininst.py =================================================================== --- a/Lib/distutils/command/bdist_wininst.py +++ b/Lib/distutils/command/bdist_wininst.py -@@ -358,7 +358,10 @@ class bdist_wininst(Command): - sfix = '' - +@@ -359,6 +359,10 @@ class bdist_wininst(Command): filename = os.path.join(directory, "wininst-%s%s.exe" % (bv, sfix)) -- f = open(filename, "rb") -+ try: + f = open(filename, "rb") + try: + f = open(filename, "rb") + except IOError as e: + raise DistutilsFileError(str(e) + ', %s not included in the Debian packages.' % filename) - try: ++ try: return f.read() finally: + f.close() |