Author: jbronn
Date: 2008-12-08 08:52:39 -0600 (Mon, 08 Dec 2008)
New Revision: 9608
Modified:
django/branches/releases/1.0.X/django/contrib/gis/shortcuts.py
Log:
[1.0.X] Fixed a Python 2.4 incompatibility in `compress_kml`.
Backport of r9607 from trunk.
Modified: django/branches/releases/1.0.X/django/contrib/gis/shortcuts.py
===================================================================
--- django/branches/releases/1.0.X/django/contrib/gis/shortcuts.py
2008-12-08 14:50:06 UTC (rev 9607)
+++ django/branches/releases/1.0.X/django/contrib/gis/shortcuts.py
2008-12-08 14:52:39 UTC (rev 9608)
@@ -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
-~----------~----~----~----~------~----~------~--~---