From 37252a67cc251fd865384fe0fb9db7a5ebd443a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ballier?= Date: Tue, 11 Nov 2014 19:39:05 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20bad=20import=C3=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PIL/ImageQt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PIL/ImageQt.py b/PIL/ImageQt.py index d7c91df13..fd662c894 100644 --- a/PIL/ImageQt.py +++ b/PIL/ImageQt.py @@ -22,11 +22,11 @@ import sys if 'PyQt4.QtGui' not in sys.modules: try: - from PyQt5.QtGui import QImage, qRgb + from PyQt5.QtGui import QImage, qRgba except: - from PyQt4.QtGui import QImage, qRgb + from PyQt4.QtGui import QImage, qRgba else: #PyQt4 is used - from PyQt4.QtGui import QImage, qRgb + from PyQt4.QtGui import QImage, qRgba ## # (Internal) Turns an RGB color into a Qt compatible color integer.