Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
Justin Bronn authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/gis/shortcuts.py
2  django/contrib/gis/shortcuts.py
@@ -5,7 +5,7 @@
5 5
 def compress_kml(kml):
6 6
     "Returns compressed KMZ from the given KML string."
7 7
     kmz = cStringIO.StringIO()
8  
-    zf = zipfile.ZipFile(kmz, 'a', zipfile.ZIP_DEFLATED, False)
  8
+    zf = zipfile.ZipFile(kmz, 'a', zipfile.ZIP_DEFLATED)
9 9
     zf.writestr('doc.kml', kml)
10 10
     zf.close()
11 11
     kmz.seek(0)

0 notes on commit 067361b

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