aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/escalations.py2
-rw-r--r--gsxws/objectify.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gsxws/escalations.py b/gsxws/escalations.py
index 6a1ffbb..fe80ccc 100644
--- a/gsxws/escalations.py
+++ b/gsxws/escalations.py
@@ -56,7 +56,7 @@ class FileAttachment(GsxObject):
def __init__(self, fp):
super(FileAttachment, self).__init__()
self.fileName = os.path.basename(fp)
- self.fileData = open(fp, 'r')
+ self.fileData = open(fp, 'rb')
class Escalation(GsxObject):
diff --git a/gsxws/objectify.py b/gsxws/objectify.py
index dfcae79..41eb4b3 100644
--- a/gsxws/objectify.py
+++ b/gsxws/objectify.py
@@ -160,7 +160,7 @@ def parse(root, response):
if isinstance(root, str) and os.path.exists(root):
root = objectify.parse(root, parser)
else:
- root = objectify.fromstring(root.encode(), parser)
+ root = objectify.fromstring(root, parser)
return root.find('*//%s' % response)