aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-04-03 11:38:26 +0300
committerFilipp Lepalaan <f@0x00.co>2013-04-03 11:38:26 +0300
commite69ce467610530c4f4810c91d1faa070105e2813 (patch)
treec2bde94182bee5a175a43dde9f1e010373a34ecc /gsxws.py
parentac3046f2f7b527b3e44d1364201855df3d74ab3c (diff)
downloadpy-gsxws-e69ce467610530c4f4810c91d1faa070105e2813.tar.gz
py-gsxws-e69ce467610530c4f4810c91d1faa070105e2813.tar.bz2
py-gsxws-e69ce467610530c4f4810c91d1faa070105e2813.zip
Fixing fetching Part image
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsxws.py b/gsxws.py
index 99db20f..23e3022 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -576,7 +576,7 @@ class Part(GsxObject):
image = '%s_350_350.gif' % self.partNumber
url = 'https://km.support.apple.com.edgekey.net/kb/imageService.jsp?image=%s' % image
- tmpfile = tempfile.NamedTemporaryFile(suffix=filename)
+ tmpfile = tempfile.NamedTemporaryFile(suffix=image)
try:
result = urllib.urlretrieve(url, tmpfile.name)