mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-15 02:54:09 -04:00
Passed mfxutil thru flake8.
See https://github.com/shlomif/PySolFC/issues/61#issuecomment-374283730 - thanks!
This commit is contained in:
parent
a68546f7a2
commit
74d3a4d9db
2 changed files with 18 additions and 18 deletions
|
@ -38,17 +38,17 @@ Image = ImageTk = ImageOps = None
|
||||||
if TOOLKIT == 'tk':
|
if TOOLKIT == 'tk':
|
||||||
try: # PIL
|
try: # PIL
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from PIL import ImageTk
|
from PIL import ImageTk # noqa: F401
|
||||||
from PIL import ImageOps
|
from PIL import ImageOps # noqa: F401
|
||||||
except ImportError:
|
except ImportError:
|
||||||
Image = None
|
Image = None
|
||||||
else:
|
else:
|
||||||
# for py2exe
|
# for py2exe
|
||||||
from PIL import GifImagePlugin
|
from PIL import GifImagePlugin # noqa: F401
|
||||||
from PIL import PngImagePlugin
|
from PIL import PngImagePlugin # noqa: F401
|
||||||
from PIL import JpegImagePlugin
|
from PIL import JpegImagePlugin # noqa: F401
|
||||||
from PIL import BmpImagePlugin
|
from PIL import BmpImagePlugin # noqa: F401
|
||||||
from PIL import PpmImagePlugin
|
from PIL import PpmImagePlugin # noqa: F401
|
||||||
Image._initialized = 2
|
Image._initialized = 2
|
||||||
USE_PIL = False
|
USE_PIL = False
|
||||||
if TOOLKIT == 'tk' and Image and Image.VERSION >= '1.1.7':
|
if TOOLKIT == 'tk' and Image and Image.VERSION >= '1.1.7':
|
||||||
|
@ -184,7 +184,8 @@ def win32_getprefdir(package):
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
|
|
||||||
def destruct(obj):
|
def destruct(obj):
|
||||||
if TOOLKIT=='kivy': return
|
if TOOLKIT == 'kivy':
|
||||||
|
return
|
||||||
|
|
||||||
# assist in breaking circular references
|
# assist in breaking circular references
|
||||||
if obj is not None:
|
if obj is not None:
|
||||||
|
|
|
@ -26,7 +26,6 @@ my %skip = (
|
||||||
pysollib/games/mahjongg/__init__.py
|
pysollib/games/mahjongg/__init__.py
|
||||||
pysollib/games/special/__init__.py
|
pysollib/games/special/__init__.py
|
||||||
pysollib/games/ultra/__init__.py
|
pysollib/games/ultra/__init__.py
|
||||||
pysollib/mfxutil.py
|
|
||||||
pysollib/pysoltk.py
|
pysollib/pysoltk.py
|
||||||
pysollib/tile/ttk.py
|
pysollib/tile/ttk.py
|
||||||
pysollib/ui/tktile/Canvas2.py
|
pysollib/ui/tktile/Canvas2.py
|
||||||
|
|
Loading…
Add table
Reference in a new issue