Update PyRTF to Python 3

This commit is contained in:
Fran Boon
2020-02-12 09:54:21 +00:00
parent ec40c1b5a9
commit e89d2bc7fa
6 changed files with 45 additions and 20 deletions
+7 -2
View File
@@ -9,9 +9,14 @@ The TextPropertySet can be used for text or in a Paragraph Style.
"""
from types import StringType
from copy import deepcopy
from copy import deepcopy
from .Constants import PY2
if PY2:
StringType = basestring
else:
StringType = str
#
# We need some basic Type like fonts, colours and paper definitions