diff --git a/.gitignore b/.gitignore index b71fc47..8f5ec4a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.pyc .pydevproject .project -.settings \ No newline at end of file +.settings +.idea \ No newline at end of file diff --git a/examples/xmlpatterns/schema/schema.py b/examples/xmlpatterns/schema/schema.py index 85c9eda..6773011 100755 --- a/examples/xmlpatterns/schema/schema.py +++ b/examples/xmlpatterns/schema/schema.py @@ -21,7 +21,7 @@ def decode_utf8(qs): # Python v3. def encode_utf8(ba): - return str(ba, encoding='utf8') + return str(ba) def decode_utf8(qs): return QtCore.QByteArray(bytes(qs, encoding='utf8'))