pyaim-t-0.8.0.1-pillow-imaging.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. diff -Naur pyaimt-0.8.0.1/src/contact.py pyaimt-0.8.0.1-1/src/contact.py
  2. --- pyaimt-0.8.0.1/src/contact.py 2009-08-24 15:04:03.000000000 +0200
  3. +++ pyaimt-0.8.0.1-1/src/contact.py 2013-09-18 17:57:12.863780595 +0200
  4. @@ -13,7 +13,7 @@
  5. import globals
  6. import base64
  7. if not config.disableAvatars:
  8. - import Image
  9. + import PIL.Image as Image
  10. import StringIO
  11. diff -Naur pyaimt-0.8.0.1/src/imgmanip.py pyaimt-0.8.0.1-1/src/imgmanip.py
  12. --- pyaimt-0.8.0.1/src/imgmanip.py 2009-08-24 15:04:03.000000000 +0200
  13. +++ pyaimt-0.8.0.1-1/src/imgmanip.py 2013-09-18 17:57:12.863780595 +0200
  14. @@ -5,7 +5,7 @@
  15. if not config.disableAvatars:
  16. try:
  17. - import Image
  18. + import PIL.Image as Image
  19. import StringIO
  20. def convertToPNG(imageData):
  21. diff -Naur pyaimt-0.8.0.1/tools/infodump.py pyaimt-0.8.0.1-1/tools/infodump.py
  22. --- pyaimt-0.8.0.1/tools/infodump.py 2009-08-24 15:04:03.000000000 +0200
  23. +++ pyaimt-0.8.0.1-1/tools/infodump.py 2013-09-18 17:57:12.864780582 +0200
  24. @@ -41,7 +41,7 @@
  25. print "Nevow Version: Unknown or Not Installed"
  26. try:
  27. - from Image import VERSION
  28. + from PIL.Image import VERSION
  29. print "Python Imaging Library (PIL) Version: " + VERSION
  30. except:
  31. print "Python Imaging Library (PIL) Version: Unknown or Not Installed"