You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-olefile/olefile_no-olefile2.patch

22 lines
1.0 KiB

diff -rupN olefile-bc9d196b02e9be2d179c5b75c696a8e041232254/OleFileIO_PL.py olefile-bc9d196b02e9be2d179c5b75c696a8e041232254-new/OleFileIO_PL.py
--- olefile-bc9d196b02e9be2d179c5b75c696a8e041232254/OleFileIO_PL.py 2016-11-29 23:09:20.000000000 +0100
+++ olefile-bc9d196b02e9be2d179c5b75c696a8e041232254-new/OleFileIO_PL.py 2017-01-02 18:39:48.255899000 +0100
@@ -24,14 +24,6 @@ See source code and LICENSE.txt for info
# The OleFileIO_PL module is for backward compatibility
-try:
- # first try to import olefile for Python 2.6+/3.x
- from olefile.olefile import *
- # import metadata not covered by *:
- from olefile.olefile import __version__, __author__, __date__
-
-except:
- # if it fails, fallback to the old version olefile2 for Python 2.x:
- from olefile.olefile2 import *
- # import metadata not covered by *:
- from olefile.olefile2 import __doc__, __version__, __author__, __date__
+from olefile.olefile import *
+# import metadata not covered by *:
+from olefile.olefile import __version__, __author__, __date__