Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit bde736cc5acd1b55a0ec10f0955b03ee225b1f10 1 parent 6590c0b
@jbronn jbronn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/shortcuts.py
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.