aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/olefile/py2/OleFileIO_PL.py
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-05-06 12:56:16 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-05-06 12:56:16 +0000
commitf92674dbdb92b9e717f952166ffa8307beec4251 (patch)
tree90180e24c75a6be69d35b81d2ec58395a8380c78 /contrib/python/olefile/py2/OleFileIO_PL.py
parentda52d326c570ca0b3284ba4bb5f1a380360afaf5 (diff)
parent86fa90c3f199cb8af7bb07188a11da49f5e8e984 (diff)
downloadydb-f92674dbdb92b9e717f952166ffa8307beec4251.tar.gz
Merge branch 'rightlib' into mergelibs-240506-1255
Diffstat (limited to 'contrib/python/olefile/py2/OleFileIO_PL.py')
-rw-r--r--contrib/python/olefile/py2/OleFileIO_PL.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/python/olefile/py2/OleFileIO_PL.py b/contrib/python/olefile/py2/OleFileIO_PL.py
new file mode 100644
index 0000000000..ffa4075e3b
--- /dev/null
+++ b/contrib/python/olefile/py2/OleFileIO_PL.py
@@ -0,0 +1,37 @@
+#!/usr/local/bin/python
+# -*- coding: latin-1 -*-
+"""
+olefile (formerly OleFileIO_PL)
+
+Module to read/write Microsoft OLE2 files (also called Structured Storage or
+Microsoft Compound Document File Format), such as Microsoft Office 97-2003
+documents, Image Composer and FlashPix files, Outlook messages, ...
+This version is compatible with Python 2.6+ and 3.x
+
+Project website: http://www.decalage.info/olefile
+
+olefile is copyright (c) 2005-2015 Philippe Lagadec (http://www.decalage.info)
+
+olefile is based on the OleFileIO module from the PIL library v1.1.6
+See: http://www.pythonware.com/products/pil/index.htm
+
+The Python Imaging Library (PIL) is
+ Copyright (c) 1997-2005 by Secret Labs AB
+ Copyright (c) 1995-2005 by Fredrik Lundh
+
+See source code and LICENSE.txt for information on usage and redistribution.
+"""
+
+# 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__