summaryrefslogtreecommitdiff
path: root/pyuno/source/loader
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-11-25 15:57:38 +0100
committerMichael Stahl <mstahl@redhat.com>2012-11-25 16:06:40 +0100
commita38b59265c08276fce6d73ce541cadb41aa6d347 (patch)
treeafd49db7620084f2381b71a97dcacec01180a47c /pyuno/source/loader
parent87c923be603d0b3706c481281549a79c8b8bcd41 (diff)
pyuno: adjust uno.ByteSequence to work with "bytes"
This is necessary for Python3; "str" type is still accepted so it runs on Python 2 as well. Change-Id: I51098feca00e4cd8ce3ceebf663d4ce79252cbcd
Diffstat (limited to 'pyuno/source/loader')
-rw-r--r--pyuno/source/loader/pythonloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/loader/pythonloader.py b/pyuno/source/loader/pythonloader.py
index a6f1cd543a62..03bf7d21b24f 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 )
- fileHandle = file( filename )
+ fileHandle = open( filename )
src = fileHandle.read().replace("\r","")
if not src.endswith( "\n" ):
src = src + "\n"