diff MoinMoin/items/__init__.py @ 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 b02f88f4428e
children 1c5a013b9ebd
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)