aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views
diff options
context:
space:
mode:
Diffstat (limited to 'servo/views')
-rw-r--r--servo/views/gsx.py4
-rw-r--r--servo/views/note.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/servo/views/gsx.py b/servo/views/gsx.py
index 2f0f057..52909fa 100644
--- a/servo/views/gsx.py
+++ b/servo/views/gsx.py
@@ -95,7 +95,7 @@ def add_part(request, repair, part):
data = {'part': part.part_number, 'repair': rep.confirmation}
msg = _("Part %(part)s added to repair %(repair)s") % data
messages.success(request, msg)
- except gsxws.GsxError, e:
+ except gsxws.GsxError as e:
messages.error(request, e)
return redirect(rep.order)
@@ -124,7 +124,7 @@ def remove_part(request, repair, part):
data = {'part': part.code, 'repair': rep.confirmation}
msg = _(u"Part %(part)s removed from %(repair)s") % data
messages.success(request, msg)
- except gsxws.GsxError, e:
+ except gsxws.GsxError as e:
messages.error(request, e)
return redirect(rep.order)
diff --git a/servo/views/note.py b/servo/views/note.py
index 9672a84..782ef4e 100644
--- a/servo/views/note.py
+++ b/servo/views/note.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import json
-import StringIO
+from io import StringIO
from gsxws import escalations
from django import template