changeset 1152:a284e43d1292

Use rev.data instead of rev, to fix crash that occured on image diff
author Bilal Akhtar <bilalakhtar@ubuntu.com>
date Sun, 11 Dec 2011 20:35:49 -0500
parents e885cf1cdd89
children 9fe19d20b91b
files MoinMoin/items/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Dec 11 04:45:36 2011 +0100
+++ b/MoinMoin/items/__init__.py	Sun Dec 11 20:35:49 2011 -0500
@@ -1062,8 +1062,8 @@
                 raise ValueError("content_type {0!r} not supported".format(content_type))
 
             try:
-                oldimage = PILImage.open(oldrev)
-                newimage = PILImage.open(newrev)
+                oldimage = PILImage.open(oldrev.data)
+                newimage = PILImage.open(newrev.data)
                 oldimage.load()
                 newimage.load()
                 diffimage = PILdiff(newimage, oldimage)