diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-01-27 07:18:20 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-01-28 13:01:26 +0100 |
commit | a76d229fa9d800e96d88f5f37981251722e153e6 (patch) | |
tree | 6988557476115a64a852522c03f0139a4bff8b16 /pyuno | |
parent | 268b2b4cd5507e63830df71b3aa21ea022c0b48f (diff) |
sys.version is for displaying; use sys.version_info for version check
Change-Id: If0d26019d9f842bcf56c1e01c46cc86c21523c3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87476
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/loader/pythonloader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/loader/pythonloader.py b/pyuno/source/loader/pythonloader.py index 268cb168fe3c..5ce69f62ea7e 100644 --- a/pyuno/source/loader/pythonloader.py +++ b/pyuno/source/loader/pythonloader.py @@ -90,7 +90,7 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ): # read the file filename = unohelper.fileUrlToSystemPath( url ) - if sys.version >= '3': + if sys.version_info >= (3,0): fileHandle = open( filename, encoding='utf_8' ) else: fileHandle = open( filename ) |