diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-11-02 12:57:01 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-11-02 12:57:01 +0200 |
commit | a81bbb8faca8fdcac3c31a9a09c7e18a20912a13 (patch) | |
tree | 32782155e13a68284a362656fe4163b67993208a /gsxws | |
parent | fc037d07daed0e10eb4f981847975c314c36a8e2 (diff) | |
download | py-gsxws-a81bbb8faca8fdcac3c31a9a09c7e18a20912a13.tar.gz py-gsxws-a81bbb8faca8fdcac3c31a9a09c7e18a20912a13.tar.bz2 py-gsxws-a81bbb8faca8fdcac3c31a9a09c7e18a20912a13.zip |
Python3 fix
Diffstat (limited to 'gsxws')
-rw-r--r-- | gsxws/parts.py | 6 |
1 files 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) |