Author: jbronn
Date: 2008-12-08 08:50:06 -0600 (Mon, 08 Dec 2008)
New Revision: 9607
Modified:
django/trunk/django/contrib/gis/shortcuts.py
Log:
Fixed a Python 2.4 incompatibility in `compress_kml`.
Modified: django/trunk/django/contrib/gis/shortcuts.py
===================================================================
--- django/trunk/django/contrib/gis/shortcuts.py 2008-12-08 14:34:28 UTC
(rev 9606)
+++ django/trunk/django/contrib/gis/shortcuts.py 2008-12-08 14:50:06 UTC
(rev 9607)
@@ -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)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---