Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Backport of r9607 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 067361b9c577e89bbc568c43a0d2e70b519c7c2c 1 parent 974135f
@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.