From bde736cc5acd1b55a0ec10f0955b03ee225b1f10 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Mon, 8 Dec 2008 14:50:06 +0000 Subject: [PATCH] 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 --- django/contrib/gis/shortcuts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/shortcuts.py b/django/contrib/gis/shortcuts.py index 58eac4d809..e62e2b6bc8 100644 --- a/django/contrib/gis/shortcuts.py +++ b/django/contrib/gis/shortcuts.py @@ -5,7 +5,7 @@ from django.template import loader 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)