Permalink
Browse files

Fixed a Python 2.4 incompatibility in `compress_kml`.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6590c0b commit bde736cc5acd1b55a0ec10f0955b03ee225b1f10 @jbronn jbronn committed Dec 8, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/shortcuts.py
@@ -5,7 +5,7 @@
def compress_kml(kml):
"Returns compressed KMZ from the given KML string."
kmz = cStringIO.StringIO()
- zf = zipfile.ZipFile(kmz, 'a', zipfile.ZIP_DEFLATED, False)
+ zf = zipfile.ZipFile(kmz, 'a', zipfile.ZIP_DEFLATED)
zf.writestr('doc.kml', kml)
zf.close()
kmz.seek(0)

0 comments on commit bde736c

Please sign in to comment.