From a81bbb8faca8fdcac3c31a9a09c7e18a20912a13 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 2 Nov 2016 12:57:01 +0200 Subject: Python3 fix --- gsxws/parts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gsxws/parts.py b/gsxws/parts.py index c84910e..6f9fb02 100644 --- a/gsxws/parts.py +++ b/gsxws/parts.py @@ -16,9 +16,9 @@ REASON_CODES = ( IMAGE_URL = "https://km.support.apple.com.edgekey.net/kb/imageService.jsp?image=%s" + class Part(GsxObject): - """ - A service part + """A service part. >>> Part('922-7913').lookup().stockPrice 6.16 @@ -40,7 +40,7 @@ class Part(GsxObject): try: return urllib.urlretrieve(url, tmpfile[1])[0] - except Exception, e: + except Exception as e: raise GsxError("Failed to fetch part image: %s" % e) -- cgit v1.2.3