From 79bc69470d8d907cd0f8e4c71788576a31899cad Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 28 Apr 2018 16:18:10 +0300 Subject: Better Python 2/3 support --- gsxws/escalations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gsxws/escalations.py') 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): -- cgit v1.2.3