Skip to content
Browse files

[1.0.X] Fixed a Python 2.4 incompatibility in `compress_kml`.

Backport of r9607 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 974135f commit 067361b9c577e89bbc568c43a0d2e70b519c7c2c @jbronn jbronn committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/
2 django/contrib/gis/
@@ -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)

0 comments on commit 067361b

Please sign in to comment.
Something went wrong with that request. Please try again.