From c089c4500b0b78acf03ee5405ad250a84b0dfa66 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 1 Dec 2019 17:44:24 +0300 Subject: Import python3.7 (3.7.5-2) --- debian/patches/bdist-wininst-notfound.diff | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'debian/patches/bdist-wininst-notfound.diff') 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() -- cgit v1.2.3