From b887d6042b87ba2a3aa0e1ffa5c30a30d7b8b044 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Mon, 18 Sep 2017 13:04:53 +0300 Subject: [PATCH] Made flake8 happier. Removed __all__ and stuff - we use explicit imports now. --- pysollib/games/acesup.py | 2 - pysollib/games/algerian.py | 2 - pysollib/games/auldlangsyne.py | 2 - pysollib/games/bakersgame.py | 2 - pysollib/games/bristol.py | 2 - pysollib/games/camelot.py | 2 - pysollib/games/capricieuse.py | 2 - pysollib/games/curdsandwhey.py | 2 - pysollib/games/dieboesesieben.py | 2 - pysollib/games/diplomat.py | 2 - pysollib/games/doublets.py | 2 - pysollib/games/eiffeltower.py | 2 - pysollib/games/fan.py | 2 - pysollib/games/fortythieves.py | 2 - pysollib/games/freecell.py | 2 - pysollib/games/glenwood.py | 2 - pysollib/games/golf.py | 2 - pysollib/games/grandduchess.py | 2 - pysollib/games/grandfathersclock.py | 2 - pysollib/games/gypsy.py | 2 - pysollib/games/harp.py | 2 - pysollib/games/headsandtails.py | 2 - pysollib/games/katzenschwanz.py | 2 - pysollib/games/klondike.py | 2 - pysollib/games/labyrinth.py | 2 - pysollib/games/larasgame.py | 2 - pysollib/games/mahjongg/mahjongg.py | 2 - pysollib/games/mahjongg/shisensho.py | 2 - pysollib/games/matriarchy.py | 2 - pysollib/games/montana.py | 2 - pysollib/games/montecarlo.py | 2 - pysollib/games/napoleon.py | 2 - pysollib/games/needle.py | 2 - pysollib/games/numerica.py | 2 - pysollib/games/osmosis.py | 2 - pysollib/games/parallels.py | 2 - pysollib/games/pasdedeux.py | 2 - pysollib/games/picturegallery.py | 2 - pysollib/games/pushpin.py | 2 - pysollib/games/pyramid.py | 2 - pysollib/games/royalcotillion.py | 2 - pysollib/games/royaleast.py | 2 - pysollib/games/sanibel.py | 2 - pysollib/games/siebenbisas.py | 2 - pysollib/games/simplex.py | 2 - pysollib/games/special/hanoi.py | 2 - pysollib/games/special/memory.py | 2 - pysollib/games/special/pegged.py | 2 - pysollib/games/special/poker.py | 2 - pysollib/games/special/tarock.py | 2 - pysollib/games/spider.py | 2 - pysollib/games/sthelena.py | 2 - pysollib/games/sultan.py | 2 - pysollib/games/takeaway.py | 2 - pysollib/games/terrace.py | 4 -- pysollib/games/threepeaks.py | 2 - pysollib/games/tournament.py | 2 - pysollib/games/ultra/dashavatara.py | 2 - pysollib/games/ultra/hanafuda.py | 3 - pysollib/games/ultra/hanafuda1.py | 2 - pysollib/games/ultra/hanafuda_common.py | 29 ---------- pysollib/games/ultra/hexadeck.py | 2 - pysollib/games/ultra/larasgame.py | 2 - pysollib/games/ultra/matrix.py | 2 - pysollib/games/ultra/mughal.py | 2 - pysollib/games/ultra/tarock.py | 2 - pysollib/games/unionsquare.py | 2 - pysollib/games/wavemotion.py | 2 - pysollib/games/windmill.py | 2 - pysollib/games/yukon.py | 2 - pysollib/games/zodiac.py | 2 - pysollib/mfxutil.py | 12 ---- pysollib/pysolgtk/colorsdialog.py | 2 - pysollib/pysolgtk/edittextdialog.py | 2 - pysollib/pysolgtk/findcarddialog.py | 5 -- pysollib/pysolgtk/fontsdialog.py | 2 - pysollib/pysolgtk/gameinfodialog.py | 2 - pysollib/pysolgtk/playeroptionsdialog.py | 2 - pysollib/pysolgtk/solverdialog.py | 12 ---- pysollib/pysolgtk/timeoutsdialog.py | 2 - pysollib/pysolgtk/tkhtml.py | 2 - pysollib/stack.py | 71 ------------------------ pysollib/tile/colorsdialog.py | 2 - pysollib/tile/edittextdialog.py | 2 - pysollib/tile/fontsdialog.py | 2 - pysollib/tile/gameinfodialog.py | 3 - pysollib/tile/menubar.py | 2 - pysollib/tile/playeroptionsdialog.py | 2 - pysollib/tile/progressbar.py | 2 - pysollib/tile/selectcardset.py | 2 - pysollib/tile/selecttree.py | 2 - pysollib/tile/solverdialog.py | 8 --- pysollib/tile/soundoptionsdialog.py | 2 - pysollib/tile/statusbar.py | 3 - pysollib/tile/timeoutsdialog.py | 2 - pysollib/tile/tkhtml.py | 2 - pysollib/tile/tkstats.py | 9 --- pysollib/tile/tkwidget.py | 10 ---- pysollib/tile/toolbar.py | 2 - pysollib/tile/wizarddialog.py | 3 - pysollib/tk/colorsdialog.py | 2 - pysollib/tk/edittextdialog.py | 2 - pysollib/tk/fontsdialog.py | 2 - pysollib/tk/gameinfodialog.py | 2 - pysollib/tk/menubar.py | 2 - pysollib/tk/playeroptionsdialog.py | 2 - pysollib/tk/progressbar.py | 2 - pysollib/tk/selectcardset.py | 2 - pysollib/tk/selecttree.py | 2 - pysollib/tk/solverdialog.py | 8 --- pysollib/tk/soundoptionsdialog.py | 2 - pysollib/tk/statusbar.py | 3 - pysollib/tk/timeoutsdialog.py | 2 - pysollib/tk/tkhtml.py | 2 - pysollib/tk/tkstats.py | 9 --- pysollib/tk/tkwidget.py | 10 ---- pysollib/tk/toolbar.py | 2 - pysollib/tk/wizarddialog.py | 3 - pysollib/ui/tktile/card.py | 2 - pysollib/ui/tktile/findcarddialog.py | 5 -- pysollib/ui/tktile/tkcanvas.py | 7 --- pysollib/ui/tktile/tkconst.py | 17 ------ pysollib/ui/tktile/tkutil.py | 24 -------- pysollib/ui/tktile/tkwrap.py | 3 - pysollib/util.py | 24 -------- scripts/pygettext.py | 17 +++--- 126 files changed, 8 insertions(+), 496 deletions(-) diff --git a/pysollib/games/acesup.py b/pysollib/games/acesup.py index 88c99052..7a1f9c6c 100644 --- a/pysollib/games/acesup.py +++ b/pysollib/games/acesup.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/algerian.py b/pysollib/games/algerian.py index 6453a306..9661db68 100644 --- a/pysollib/games/algerian.py +++ b/pysollib/games/algerian.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/auldlangsyne.py b/pysollib/games/auldlangsyne.py index 0e86728d..0976778f 100644 --- a/pysollib/games/auldlangsyne.py +++ b/pysollib/games/auldlangsyne.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/bakersgame.py b/pysollib/games/bakersgame.py index 954dda48..0088bc73 100644 --- a/pysollib/games/bakersgame.py +++ b/pysollib/games/bakersgame.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/bristol.py b/pysollib/games/bristol.py index ed6f5d31..3e2265a2 100644 --- a/pysollib/games/bristol.py +++ b/pysollib/games/bristol.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/camelot.py b/pysollib/games/camelot.py index 2241e1d0..cd453c9d 100644 --- a/pysollib/games/camelot.py +++ b/pysollib/games/camelot.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/capricieuse.py b/pysollib/games/capricieuse.py index 44fc09f0..c90950dd 100644 --- a/pysollib/games/capricieuse.py +++ b/pysollib/games/capricieuse.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/curdsandwhey.py b/pysollib/games/curdsandwhey.py index 8ea111bd..2c6d9f41 100644 --- a/pysollib/games/curdsandwhey.py +++ b/pysollib/games/curdsandwhey.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/dieboesesieben.py b/pysollib/games/dieboesesieben.py index 3fe4a9b8..681ab661 100644 --- a/pysollib/games/dieboesesieben.py +++ b/pysollib/games/dieboesesieben.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/diplomat.py b/pysollib/games/diplomat.py index 3811983f..01b796cb 100644 --- a/pysollib/games/diplomat.py +++ b/pysollib/games/diplomat.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/doublets.py b/pysollib/games/doublets.py index 81fda169..ea521f94 100644 --- a/pysollib/games/doublets.py +++ b/pysollib/games/doublets.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/eiffeltower.py b/pysollib/games/eiffeltower.py index 8e4241c0..f3a47856 100644 --- a/pysollib/games/eiffeltower.py +++ b/pysollib/games/eiffeltower.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/fan.py b/pysollib/games/fan.py index a5092d84..083c6676 100644 --- a/pysollib/games/fan.py +++ b/pysollib/games/fan.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/fortythieves.py b/pysollib/games/fortythieves.py index 932cc420..d6e0fc6f 100644 --- a/pysollib/games/fortythieves.py +++ b/pysollib/games/fortythieves.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/freecell.py b/pysollib/games/freecell.py index b4a3b192..b50b1aca 100644 --- a/pysollib/games/freecell.py +++ b/pysollib/games/freecell.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/glenwood.py b/pysollib/games/glenwood.py index 8c3b9b46..f2208a6b 100644 --- a/pysollib/games/glenwood.py +++ b/pysollib/games/glenwood.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/golf.py b/pysollib/games/golf.py index f1687e8e..b5509178 100644 --- a/pysollib/games/golf.py +++ b/pysollib/games/golf.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/grandduchess.py b/pysollib/games/grandduchess.py index 048012b3..eb6d7a66 100644 --- a/pysollib/games/grandduchess.py +++ b/pysollib/games/grandduchess.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/grandfathersclock.py b/pysollib/games/grandfathersclock.py index 42fda9fd..c6e45869 100644 --- a/pysollib/games/grandfathersclock.py +++ b/pysollib/games/grandfathersclock.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/gypsy.py b/pysollib/games/gypsy.py index 36daa970..ec029ce1 100644 --- a/pysollib/games/gypsy.py +++ b/pysollib/games/gypsy.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/harp.py b/pysollib/games/harp.py index 0dccbb2e..288af651 100644 --- a/pysollib/games/harp.py +++ b/pysollib/games/harp.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/headsandtails.py b/pysollib/games/headsandtails.py index 1d47cb2e..cb8af194 100644 --- a/pysollib/games/headsandtails.py +++ b/pysollib/games/headsandtails.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/katzenschwanz.py b/pysollib/games/katzenschwanz.py index 5c4dc23c..6b8a2089 100644 --- a/pysollib/games/katzenschwanz.py +++ b/pysollib/games/katzenschwanz.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/klondike.py b/pysollib/games/klondike.py index a1d87694..79149494 100644 --- a/pysollib/games/klondike.py +++ b/pysollib/games/klondike.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/labyrinth.py b/pysollib/games/labyrinth.py index 3513c3b9..99dceb92 100644 --- a/pysollib/games/labyrinth.py +++ b/pysollib/games/labyrinth.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/larasgame.py b/pysollib/games/larasgame.py index 805b49cb..2b51b32e 100644 --- a/pysollib/games/larasgame.py +++ b/pysollib/games/larasgame.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/mahjongg/mahjongg.py b/pysollib/games/mahjongg/mahjongg.py index 566e790b..3ecf68d5 100644 --- a/pysollib/games/mahjongg/mahjongg.py +++ b/pysollib/games/mahjongg/mahjongg.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # Imports import sys import re diff --git a/pysollib/games/mahjongg/shisensho.py b/pysollib/games/mahjongg/shisensho.py index 3f5056ed..f60f08b3 100644 --- a/pysollib/games/mahjongg/shisensho.py +++ b/pysollib/games/mahjongg/shisensho.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # Imports import sys from gettext import ungettext diff --git a/pysollib/games/matriarchy.py b/pysollib/games/matriarchy.py index 72798aad..ba1823c2 100644 --- a/pysollib/games/matriarchy.py +++ b/pysollib/games/matriarchy.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/montana.py b/pysollib/games/montana.py index 7a4a832e..49b4a930 100644 --- a/pysollib/games/montana.py +++ b/pysollib/games/montana.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/montecarlo.py b/pysollib/games/montecarlo.py index 0a7e365d..91517a1b 100644 --- a/pysollib/games/montecarlo.py +++ b/pysollib/games/montecarlo.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/napoleon.py b/pysollib/games/napoleon.py index 30d4b293..bac50400 100644 --- a/pysollib/games/napoleon.py +++ b/pysollib/games/napoleon.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/needle.py b/pysollib/games/needle.py index 498568e8..dbbd17d9 100644 --- a/pysollib/games/needle.py +++ b/pysollib/games/needle.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/numerica.py b/pysollib/games/numerica.py index 1fb0540e..2fea0140 100644 --- a/pysollib/games/numerica.py +++ b/pysollib/games/numerica.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports import time diff --git a/pysollib/games/osmosis.py b/pysollib/games/osmosis.py index 9ed31ec6..7e64ef47 100644 --- a/pysollib/games/osmosis.py +++ b/pysollib/games/osmosis.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/parallels.py b/pysollib/games/parallels.py index 298044c8..ffd8124b 100644 --- a/pysollib/games/parallels.py +++ b/pysollib/games/parallels.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/pasdedeux.py b/pysollib/games/pasdedeux.py index 7d41ed87..64f9b8b0 100644 --- a/pysollib/games/pasdedeux.py +++ b/pysollib/games/pasdedeux.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/picturegallery.py b/pysollib/games/picturegallery.py index fcd8b843..7a4e7e15 100644 --- a/pysollib/games/picturegallery.py +++ b/pysollib/games/picturegallery.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/pushpin.py b/pysollib/games/pushpin.py index 9800e7f8..4293c91f 100644 --- a/pysollib/games/pushpin.py +++ b/pysollib/games/pushpin.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/pyramid.py b/pysollib/games/pyramid.py index c5738506..c36567c1 100644 --- a/pysollib/games/pyramid.py +++ b/pysollib/games/pyramid.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/royalcotillion.py b/pysollib/games/royalcotillion.py index 5bef5e98..c92f1528 100644 --- a/pysollib/games/royalcotillion.py +++ b/pysollib/games/royalcotillion.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/royaleast.py b/pysollib/games/royaleast.py index 3b026f8a..8738ac5f 100644 --- a/pysollib/games/royaleast.py +++ b/pysollib/games/royaleast.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/sanibel.py b/pysollib/games/sanibel.py index 9c33e0d8..6d338627 100644 --- a/pysollib/games/sanibel.py +++ b/pysollib/games/sanibel.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/siebenbisas.py b/pysollib/games/siebenbisas.py index 31cbeb1a..60e7fb8d 100644 --- a/pysollib/games/siebenbisas.py +++ b/pysollib/games/siebenbisas.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/simplex.py b/pysollib/games/simplex.py index cdaecfc3..f4a396fb 100644 --- a/pysollib/games/simplex.py +++ b/pysollib/games/simplex.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/special/hanoi.py b/pysollib/games/special/hanoi.py index 8b4ad292..523f8507 100644 --- a/pysollib/games/special/hanoi.py +++ b/pysollib/games/special/hanoi.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/special/memory.py b/pysollib/games/special/memory.py index b0450302..667cbdb4 100644 --- a/pysollib/games/special/memory.py +++ b/pysollib/games/special/memory.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/special/pegged.py b/pysollib/games/special/pegged.py index e680a314..84915aff 100644 --- a/pysollib/games/special/pegged.py +++ b/pysollib/games/special/pegged.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # Imports # PySol imports diff --git a/pysollib/games/special/poker.py b/pysollib/games/special/poker.py index a552da71..743c734a 100644 --- a/pysollib/games/special/poker.py +++ b/pysollib/games/special/poker.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/special/tarock.py b/pysollib/games/special/tarock.py index 902c50dc..19a69ff3 100644 --- a/pysollib/games/special/tarock.py +++ b/pysollib/games/special/tarock.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # Imports # PySol imports diff --git a/pysollib/games/spider.py b/pysollib/games/spider.py index 7403b9fa..82517f09 100644 --- a/pysollib/games/spider.py +++ b/pysollib/games/spider.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/sthelena.py b/pysollib/games/sthelena.py index b3a826ce..a22bc668 100644 --- a/pysollib/games/sthelena.py +++ b/pysollib/games/sthelena.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/sultan.py b/pysollib/games/sultan.py index 2b5e4507..9debdc6d 100644 --- a/pysollib/games/sultan.py +++ b/pysollib/games/sultan.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/takeaway.py b/pysollib/games/takeaway.py index 424164cb..d9fc2e06 100644 --- a/pysollib/games/takeaway.py +++ b/pysollib/games/takeaway.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/terrace.py b/pysollib/games/terrace.py index 079bec27..32ddc44a 100644 --- a/pysollib/games/terrace.py +++ b/pysollib/games/terrace.py @@ -21,10 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - -# imports - # PySol imports from pysollib.mygettext import _ from pysollib.gamedb import registerGame, GameInfo, GI diff --git a/pysollib/games/threepeaks.py b/pysollib/games/threepeaks.py index fa59c842..36845676 100644 --- a/pysollib/games/threepeaks.py +++ b/pysollib/games/threepeaks.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # Imports # PySol imports diff --git a/pysollib/games/tournament.py b/pysollib/games/tournament.py index 82fc46ae..b176b207 100644 --- a/pysollib/games/tournament.py +++ b/pysollib/games/tournament.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/ultra/dashavatara.py b/pysollib/games/ultra/dashavatara.py index 19238985..171d1194 100644 --- a/pysollib/games/ultra/dashavatara.py +++ b/pysollib/games/ultra/dashavatara.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = [] - # Imports import math import time diff --git a/pysollib/games/ultra/hanafuda.py b/pysollib/games/ultra/hanafuda.py index 7871b042..2c7d0ddd 100644 --- a/pysollib/games/ultra/hanafuda.py +++ b/pysollib/games/ultra/hanafuda.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # Imports # PySol imports @@ -60,7 +58,6 @@ from pysollib.stack import \ cardsFaceUp, \ WasteTalonStack - # ************************************************************************ # * Flower Clock # ***********************************************************************/ diff --git a/pysollib/games/ultra/hanafuda1.py b/pysollib/games/ultra/hanafuda1.py index 19934d46..03599785 100644 --- a/pysollib/games/ultra/hanafuda1.py +++ b/pysollib/games/ultra/hanafuda1.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # PySol imports from pysollib.mygettext import _ from pysollib.gamedb import registerGame, GameInfo, GI diff --git a/pysollib/games/ultra/hanafuda_common.py b/pysollib/games/ultra/hanafuda_common.py index b3001a2a..4507969a 100644 --- a/pysollib/games/ultra/hanafuda_common.py +++ b/pysollib/games/ultra/hanafuda_common.py @@ -21,35 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [ - 'AbstractFlowerGame', - 'Queue_Hint', - 'Flower_FoundationStack', - 'Hanafuda_SS_FoundationStack', - 'FlowerClock_Foundation', - 'Gaji_Foundation', - 'Pagoda_Foundation', - 'MatsuKiri_Foundation', - 'GreatWall_FoundationStack', - 'FourWinds_Foundation', - 'Queue_Foundation', - 'Flower_OpenStack', - 'Hanafuda_SequenceStack', - 'Oonsoo_SequenceStack', - 'FlowerClock_RowStack', - 'Gaji_RowStack', - 'Matsukiri_RowStack', - 'Samuri_RowStack', - 'GreatWall_RowStack', - 'FourWinds_RowStack', - 'Queue_BraidStack', - 'Queue_RowStack', - 'Queue_ReserveStack', - 'JapaneseGarden_RowStack', - 'HanafudaRK_RowStack', - ] - - import math from pysollib.mygettext import _ diff --git a/pysollib/games/ultra/hexadeck.py b/pysollib/games/ultra/hexadeck.py index eb0d9348..7f624796 100644 --- a/pysollib/games/ultra/hexadeck.py +++ b/pysollib/games/ultra/hexadeck.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # Imports import math diff --git a/pysollib/games/ultra/larasgame.py b/pysollib/games/ultra/larasgame.py index 5d2214fe..5615d798 100644 --- a/pysollib/games/ultra/larasgame.py +++ b/pysollib/games/ultra/larasgame.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/ultra/matrix.py b/pysollib/games/ultra/matrix.py index 9aa7d141..954b5fc2 100644 --- a/pysollib/games/ultra/matrix.py +++ b/pysollib/games/ultra/matrix.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # Imports import math diff --git a/pysollib/games/ultra/mughal.py b/pysollib/games/ultra/mughal.py index 6f9f6c83..f8be6e5d 100644 --- a/pysollib/games/ultra/mughal.py +++ b/pysollib/games/ultra/mughal.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # Imports import math diff --git a/pysollib/games/ultra/tarock.py b/pysollib/games/ultra/tarock.py index 3a9c415d..ac8362f7 100644 --- a/pysollib/games/ultra/tarock.py +++ b/pysollib/games/ultra/tarock.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # Imports # Ultrasol imports diff --git a/pysollib/games/unionsquare.py b/pysollib/games/unionsquare.py index 47578adf..8e20c749 100644 --- a/pysollib/games/unionsquare.py +++ b/pysollib/games/unionsquare.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/wavemotion.py b/pysollib/games/wavemotion.py index f647ffee..231db857 100644 --- a/pysollib/games/wavemotion.py +++ b/pysollib/games/wavemotion.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/windmill.py b/pysollib/games/windmill.py index 5ba666ef..126d256c 100644 --- a/pysollib/games/windmill.py +++ b/pysollib/games/windmill.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/yukon.py b/pysollib/games/yukon.py index cdd80ccf..da5456b1 100644 --- a/pysollib/games/yukon.py +++ b/pysollib/games/yukon.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/games/zodiac.py b/pysollib/games/zodiac.py index 8f622c80..db52ecf1 100644 --- a/pysollib/games/zodiac.py +++ b/pysollib/games/zodiac.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [] - # imports # PySol imports diff --git a/pysollib/mfxutil.py b/pysollib/mfxutil.py index c4992d02..3b0219c7 100644 --- a/pysollib/mfxutil.py +++ b/pysollib/mfxutil.py @@ -21,18 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [ - 'BmpImagePlugin', - 'GifImagePlugin', - 'Image', - 'ImageOps', - 'ImageTk', - 'JpegImagePlugin', - 'PngImagePlugin', - 'PpmImagePlugin', - 'UnpicklingError', - ] - # imports import sys import os diff --git a/pysollib/pysolgtk/colorsdialog.py b/pysollib/pysolgtk/colorsdialog.py index 223ef90f..98dc7fd4 100644 --- a/pysollib/pysolgtk/colorsdialog.py +++ b/pysollib/pysolgtk/colorsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['ColorsDialog'] - # imports from pysollib.mygettext import _ # import os, sys diff --git a/pysollib/pysolgtk/edittextdialog.py b/pysollib/pysolgtk/edittextdialog.py index cb111fb9..0ad98865 100644 --- a/pysollib/pysolgtk/edittextdialog.py +++ b/pysollib/pysolgtk/edittextdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['EditTextDialog'] - # imports # PySol imports diff --git a/pysollib/pysolgtk/findcarddialog.py b/pysollib/pysolgtk/findcarddialog.py index 5027ff30..0b6f1fa4 100644 --- a/pysollib/pysolgtk/findcarddialog.py +++ b/pysollib/pysolgtk/findcarddialog.py @@ -21,11 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['create_find_card_dialog', - 'connect_game_find_card_dialog', - 'destroy_find_card_dialog', - ] - # imports # import os # from six.moves import tkinter diff --git a/pysollib/pysolgtk/fontsdialog.py b/pysollib/pysolgtk/fontsdialog.py index 7195196f..84e7e44a 100644 --- a/pysollib/pysolgtk/fontsdialog.py +++ b/pysollib/pysolgtk/fontsdialog.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['FontsDialog'] - # imports # import os, sys # import types diff --git a/pysollib/pysolgtk/gameinfodialog.py b/pysollib/pysolgtk/gameinfodialog.py index 296f2b61..8ceb3902 100644 --- a/pysollib/pysolgtk/gameinfodialog.py +++ b/pysollib/pysolgtk/gameinfodialog.py @@ -22,8 +22,6 @@ # ---------------------------------------------------------------------------## -__all__ = ['GameInfoDialog'] - # # imports # import os, sys # from six.moves import tkinter diff --git a/pysollib/pysolgtk/playeroptionsdialog.py b/pysollib/pysolgtk/playeroptionsdialog.py index 1ab0be9e..5f4ddeb9 100644 --- a/pysollib/pysolgtk/playeroptionsdialog.py +++ b/pysollib/pysolgtk/playeroptionsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PlayerOptionsDialog'] - # imports import gobject import gtk diff --git a/pysollib/pysolgtk/solverdialog.py b/pysollib/pysolgtk/solverdialog.py index c2b5a7a8..5f540f05 100644 --- a/pysollib/pysolgtk/solverdialog.py +++ b/pysollib/pysolgtk/solverdialog.py @@ -21,18 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [ - # 'SolverDialog', - 'create_solver_dialog', - 'connect_game_solver_dialog', - 'destroy_solver_dialog', - 'reset_solver_dialog', - ] - - -# solver_dialog = None - - def create_solver_dialog(parent, game): pass diff --git a/pysollib/pysolgtk/timeoutsdialog.py b/pysollib/pysolgtk/timeoutsdialog.py index 8b5923a3..f62c4cd3 100644 --- a/pysollib/pysolgtk/timeoutsdialog.py +++ b/pysollib/pysolgtk/timeoutsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['TimeoutsDialog'] - # imports # import os, sys from pysollib.mygettext import _ diff --git a/pysollib/pysolgtk/tkhtml.py b/pysollib/pysolgtk/tkhtml.py index 6a27f805..2fe39e19 100644 --- a/pysollib/pysolgtk/tkhtml.py +++ b/pysollib/pysolgtk/tkhtml.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['HTMLViewer'] - # imports import os import sys diff --git a/pysollib/stack.py b/pysollib/stack.py index 2591c41b..77b0a677 100644 --- a/pysollib/stack.py +++ b/pysollib/stack.py @@ -21,77 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['cardsFaceUp', - 'cardsFaceDown', - 'isRankSequence', - 'isAlternateColorSequence', - 'isSameColorSequence', - 'isSameSuitSequence', - 'isAnySuitButOwnSequence', - 'getNumberOfFreeStacks', - 'getPileFromStacks', - 'Stack', - 'DealRow_StackMethods', - 'DealBaseCard_StackMethods', - 'RedealCards_StackMethods', - 'TalonStack', - 'DealRowTalonStack', - 'InitialDealTalonStack', - 'RedealTalonStack', - 'DealRowRedealTalonStack', - 'DealReserveRedealTalonStack', - 'SpiderTalonStack', - 'GroundsForADivorceTalonStack', - 'OpenStack', - 'AbstractFoundationStack', - 'SS_FoundationStack', - 'RK_FoundationStack', - 'AC_FoundationStack', - 'SC_FoundationStack', - 'Spider_SS_Foundation', - 'Spider_AC_Foundation', - 'Spider_RK_Foundation', - # 'SequenceStack_StackMethods', - 'BasicRowStack', - 'SequenceRowStack', - 'AC_RowStack', - 'SC_RowStack', - 'SS_RowStack', - 'RK_RowStack', - 'BO_RowStack', - 'UD_AC_RowStack', - 'UD_SC_RowStack', - 'UD_SS_RowStack', - 'UD_RK_RowStack', - 'FreeCell_AC_RowStack', - 'FreeCell_SS_RowStack', - 'FreeCell_RK_RowStack', - 'Spider_AC_RowStack', - 'Spider_SS_RowStack', - 'Yukon_AC_RowStack', - 'Yukon_SS_RowStack', - 'Yukon_RK_RowStack', - 'KingAC_RowStack', - 'KingSS_RowStack', - 'KingRK_RowStack', - 'WasteStack', - 'WasteTalonStack', - 'FaceUpWasteTalonStack', - 'OpenTalonStack', - 'ReserveStack', - 'SuperMoveStack_StackMethods', - 'SuperMoveSS_RowStack', - 'SuperMoveAC_RowStack', - 'SuperMoveRK_RowStack', - 'SuperMoveSC_RowStack', - 'SuperMoveBO_RowStack', - 'InvisibleStack', - 'StackWrapper', - 'WeakStackWrapper', - 'FullStackWrapper', - 'ArbitraryStack', - ] - from pysollib.mygettext import _ # PySol imports from pysollib.mfxutil import Struct, kwdefault, SubclassResponsibility diff --git a/pysollib/tile/colorsdialog.py b/pysollib/tile/colorsdialog.py index 2a636a49..f09b9325 100644 --- a/pysollib/tile/colorsdialog.py +++ b/pysollib/tile/colorsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['ColorsDialog'] - from pysollib.ui.tktile.colorsdialog import BaseColorsDialog from pysollib.tile.basetilemfxdialog import BaseTileMfxDialog diff --git a/pysollib/tile/edittextdialog.py b/pysollib/tile/edittextdialog.py index 9b77f7b6..6f540470 100644 --- a/pysollib/tile/edittextdialog.py +++ b/pysollib/tile/edittextdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['EditTextDialog'] - # imports # Toolkit imports diff --git a/pysollib/tile/fontsdialog.py b/pysollib/tile/fontsdialog.py index 0a5eb40f..32f48608 100644 --- a/pysollib/tile/fontsdialog.py +++ b/pysollib/tile/fontsdialog.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['FontsDialog'] - # imports from six.moves import tkinter from . import ttk diff --git a/pysollib/tile/gameinfodialog.py b/pysollib/tile/gameinfodialog.py index 6e54a5c1..c59e85a7 100644 --- a/pysollib/tile/gameinfodialog.py +++ b/pysollib/tile/gameinfodialog.py @@ -21,9 +21,6 @@ # # ---------------------------------------------------------------------------## - -__all__ = ['GameInfoDialog'] - import pysollib.ui.tktile.gameinfodialog from pysollib.tile.basetilemfxdialog import BaseTileMfxDialog diff --git a/pysollib/tile/menubar.py b/pysollib/tile/menubar.py index 9b787432..0f024804 100644 --- a/pysollib/tile/menubar.py +++ b/pysollib/tile/menubar.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PysolMenubarTk'] - # imports from . import ttk diff --git a/pysollib/tile/playeroptionsdialog.py b/pysollib/tile/playeroptionsdialog.py index 6896b17f..0426258a 100644 --- a/pysollib/tile/playeroptionsdialog.py +++ b/pysollib/tile/playeroptionsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PlayerOptionsDialog'] - # imports from six.moves import tkinter from . import ttk diff --git a/pysollib/tile/progressbar.py b/pysollib/tile/progressbar.py index 9a3af9fa..3639dae2 100644 --- a/pysollib/tile/progressbar.py +++ b/pysollib/tile/progressbar.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['PysolProgressBar'] - # imports from six.moves import tkinter from . import ttk diff --git a/pysollib/tile/selectcardset.py b/pysollib/tile/selectcardset.py index 20c07bf6..779b0003 100644 --- a/pysollib/tile/selectcardset.py +++ b/pysollib/tile/selectcardset.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['SelectCardsetDialogWithPreview'] - # imports import os from six.moves import tkinter diff --git a/pysollib/tile/selecttree.py b/pysollib/tile/selecttree.py index 4cf2fdf2..abe3ac88 100644 --- a/pysollib/tile/selecttree.py +++ b/pysollib/tile/selecttree.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['SelectDialogTreeData'] - # Toolkit imports from .tktree import MfxTreeLeaf, MfxTreeNode, MfxTreeInCanvas diff --git a/pysollib/tile/solverdialog.py b/pysollib/tile/solverdialog.py index 13033bfa..303846d9 100644 --- a/pysollib/tile/solverdialog.py +++ b/pysollib/tile/solverdialog.py @@ -21,14 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [ - # 'SolverDialog', - 'create_solver_dialog', - 'connect_game_solver_dialog', - 'destroy_solver_dialog', - 'reset_solver_dialog', - ] - # imports # PySol imports diff --git a/pysollib/tile/soundoptionsdialog.py b/pysollib/tile/soundoptionsdialog.py index 1758516e..0b7d87e5 100644 --- a/pysollib/tile/soundoptionsdialog.py +++ b/pysollib/tile/soundoptionsdialog.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['SoundOptionsDialog'] - # imports import os from six.moves import tkinter diff --git a/pysollib/tile/statusbar.py b/pysollib/tile/statusbar.py index 6fc72cbe..e2aa4b90 100644 --- a/pysollib/tile/statusbar.py +++ b/pysollib/tile/statusbar.py @@ -21,9 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PysolStatusbar', - 'HelpStatusbar'] - # imports import os import sys diff --git a/pysollib/tile/timeoutsdialog.py b/pysollib/tile/timeoutsdialog.py index 01b794ff..205dca20 100644 --- a/pysollib/tile/timeoutsdialog.py +++ b/pysollib/tile/timeoutsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['TimeoutsDialog'] - # imports from six.moves import tkinter from . import ttk diff --git a/pysollib/tile/tkhtml.py b/pysollib/tile/tkhtml.py index 52db2367..8b8cedd9 100644 --- a/pysollib/tile/tkhtml.py +++ b/pysollib/tile/tkhtml.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['HTMLViewer'] - # imports import os import sys diff --git a/pysollib/tile/tkstats.py b/pysollib/tile/tkstats.py index d05b3b12..60b27b29 100644 --- a/pysollib/tile/tkstats.py +++ b/pysollib/tile/tkstats.py @@ -21,15 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['SingleGame_StatsDialog', - 'AllGames_StatsDialog', - 'FullLog_StatsDialog', - 'SessionLog_StatsDialog', - 'Status_StatsDialog', - 'Top_StatsDialog', - 'ProgressionDialog', - ] - # imports import os import time diff --git a/pysollib/tile/tkwidget.py b/pysollib/tile/tkwidget.py index 477f375e..8988be2d 100644 --- a/pysollib/tile/tkwidget.py +++ b/pysollib/tile/tkwidget.py @@ -21,16 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['MfxDialog', - 'MfxMessageDialog', - 'MfxExceptionDialog', - 'MfxSimpleEntry', - 'PysolAboutDialog', - 'MfxTooltip', - 'MfxScrolledCanvas', - 'StackDesc', - ] - # imports import sys import os diff --git a/pysollib/tile/toolbar.py b/pysollib/tile/toolbar.py index bd80c9ae..9b9ab831 100644 --- a/pysollib/tile/toolbar.py +++ b/pysollib/tile/toolbar.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PysolToolbarTk'] - # imports import os from six.moves import tkinter diff --git a/pysollib/tile/wizarddialog.py b/pysollib/tile/wizarddialog.py index 74fcad7c..0afce180 100644 --- a/pysollib/tile/wizarddialog.py +++ b/pysollib/tile/wizarddialog.py @@ -21,9 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['WizardDialog'] - - # imports import sys diff --git a/pysollib/tk/colorsdialog.py b/pysollib/tk/colorsdialog.py index be70a237..557dc77c 100644 --- a/pysollib/tk/colorsdialog.py +++ b/pysollib/tk/colorsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['ColorsDialog'] - from pysollib.ui.tktile.colorsdialog import BaseColorsDialog from pysollib.tk.basetkmfxdialog import BaseTkMfxDialog diff --git a/pysollib/tk/edittextdialog.py b/pysollib/tk/edittextdialog.py index afb27a9c..2f4793b2 100644 --- a/pysollib/tk/edittextdialog.py +++ b/pysollib/tk/edittextdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['EditTextDialog'] - # imports # Toolkit imports diff --git a/pysollib/tk/fontsdialog.py b/pysollib/tk/fontsdialog.py index 67cd4eb7..6602ac5c 100644 --- a/pysollib/tk/fontsdialog.py +++ b/pysollib/tk/fontsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['FontsDialog'] - # imports from six.moves import tkinter from six.moves import tkinter_font diff --git a/pysollib/tk/gameinfodialog.py b/pysollib/tk/gameinfodialog.py index 04d81555..cd9d487a 100644 --- a/pysollib/tk/gameinfodialog.py +++ b/pysollib/tk/gameinfodialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['GameInfoDialog'] - import pysollib.ui.tktile.gameinfodialog from pysollib.tk.basetkmfxdialog import BaseTkMfxDialog diff --git a/pysollib/tk/menubar.py b/pysollib/tk/menubar.py index d43e6fdb..f8351c30 100644 --- a/pysollib/tk/menubar.py +++ b/pysollib/tk/menubar.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PysolMenubarTk'] - # imports # PySol imports diff --git a/pysollib/tk/playeroptionsdialog.py b/pysollib/tk/playeroptionsdialog.py index 4511fc12..e01957d6 100644 --- a/pysollib/tk/playeroptionsdialog.py +++ b/pysollib/tk/playeroptionsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PlayerOptionsDialog'] - # imports from six.moves import tkinter diff --git a/pysollib/tk/progressbar.py b/pysollib/tk/progressbar.py index acf63d76..8d8d8c13 100644 --- a/pysollib/tk/progressbar.py +++ b/pysollib/tk/progressbar.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PysolProgressBar'] - # imports from six.moves import tkinter diff --git a/pysollib/tk/selectcardset.py b/pysollib/tk/selectcardset.py index 9463a60e..ef0de04f 100644 --- a/pysollib/tk/selectcardset.py +++ b/pysollib/tk/selectcardset.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['SelectCardsetDialogWithPreview'] - # imports import os from six.moves import tkinter diff --git a/pysollib/tk/selecttree.py b/pysollib/tk/selecttree.py index f7057e74..ef995c00 100644 --- a/pysollib/tk/selecttree.py +++ b/pysollib/tk/selecttree.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['SelectDialogTreeData'] - # imports # Toolkit imports diff --git a/pysollib/tk/solverdialog.py b/pysollib/tk/solverdialog.py index 5dd09fbc..f79fe885 100644 --- a/pysollib/tk/solverdialog.py +++ b/pysollib/tk/solverdialog.py @@ -21,14 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = [ - # 'SolverDialog', - 'create_solver_dialog', - 'connect_game_solver_dialog', - 'destroy_solver_dialog', - 'reset_solver_dialog', - ] - # imports import sys from six.moves import tkinter diff --git a/pysollib/tk/soundoptionsdialog.py b/pysollib/tk/soundoptionsdialog.py index 5471ede2..b0b684bf 100644 --- a/pysollib/tk/soundoptionsdialog.py +++ b/pysollib/tk/soundoptionsdialog.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['SoundOptionsDialog'] - # imports import os from six.moves import tkinter diff --git a/pysollib/tk/statusbar.py b/pysollib/tk/statusbar.py index a3eb56cf..a86ffee9 100644 --- a/pysollib/tk/statusbar.py +++ b/pysollib/tk/statusbar.py @@ -21,9 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PysolStatusbar', - 'HelpStatusbar'] - # imports import os import sys diff --git a/pysollib/tk/timeoutsdialog.py b/pysollib/tk/timeoutsdialog.py index 0404d884..1323b33c 100644 --- a/pysollib/tk/timeoutsdialog.py +++ b/pysollib/tk/timeoutsdialog.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['TimeoutsDialog'] - # imports from six.moves import tkinter diff --git a/pysollib/tk/tkhtml.py b/pysollib/tk/tkhtml.py index da210808..2102fa20 100644 --- a/pysollib/tk/tkhtml.py +++ b/pysollib/tk/tkhtml.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['HTMLViewer'] - # imports import os import sys diff --git a/pysollib/tk/tkstats.py b/pysollib/tk/tkstats.py index b0cea38a..8d629fe6 100644 --- a/pysollib/tk/tkstats.py +++ b/pysollib/tk/tkstats.py @@ -21,15 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['SingleGame_StatsDialog', - 'AllGames_StatsDialog', - 'FullLog_StatsDialog', - 'SessionLog_StatsDialog', - 'Status_StatsDialog', - 'Top_StatsDialog', - 'ProgressionDialog', - ] - # imports import os import time diff --git a/pysollib/tk/tkwidget.py b/pysollib/tk/tkwidget.py index 4770bcbc..f92f481a 100644 --- a/pysollib/tk/tkwidget.py +++ b/pysollib/tk/tkwidget.py @@ -21,16 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['MfxDialog', - 'MfxMessageDialog', - 'MfxExceptionDialog', - 'MfxSimpleEntry', - 'PysolAboutDialog', - 'MfxTooltip', - 'MfxScrolledCanvas', - 'StackDesc', - ] - # imports import sys import time diff --git a/pysollib/tk/toolbar.py b/pysollib/tk/toolbar.py index f919eef3..0ab8c292 100644 --- a/pysollib/tk/toolbar.py +++ b/pysollib/tk/toolbar.py @@ -21,8 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['PysolToolbarTk'] - # imports import os from six.moves import tkinter diff --git a/pysollib/tk/wizarddialog.py b/pysollib/tk/wizarddialog.py index b715299f..71d92050 100644 --- a/pysollib/tk/wizarddialog.py +++ b/pysollib/tk/wizarddialog.py @@ -21,9 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['WizardDialog'] - - # imports import sys from six.moves import tkinter diff --git a/pysollib/ui/tktile/card.py b/pysollib/ui/tktile/card.py index 43dc5816..961d3259 100644 --- a/pysollib/ui/tktile/card.py +++ b/pysollib/ui/tktile/card.py @@ -21,8 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['Card'] - # imports # PySol imports diff --git a/pysollib/ui/tktile/findcarddialog.py b/pysollib/ui/tktile/findcarddialog.py index 4265f527..64e9a1bc 100644 --- a/pysollib/ui/tktile/findcarddialog.py +++ b/pysollib/ui/tktile/findcarddialog.py @@ -21,11 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['create_find_card_dialog', - 'connect_game_find_card_dialog', - 'destroy_find_card_dialog', - ] - # imports import os from six.moves import tkinter diff --git a/pysollib/ui/tktile/tkcanvas.py b/pysollib/ui/tktile/tkcanvas.py index fe31607e..b25817d5 100644 --- a/pysollib/ui/tktile/tkcanvas.py +++ b/pysollib/ui/tktile/tkcanvas.py @@ -21,13 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['MfxCanvasGroup', - 'MfxCanvasImage', - 'MfxCanvasText', - 'MfxCanvasLine', - 'MfxCanvasRectangle', - 'MfxCanvas'] - # imports from six.moves import tkinter from pysollib.ui.tktile.Canvas2 import CanvasText, Group, Line, Rectangle diff --git a/pysollib/ui/tktile/tkconst.py b/pysollib/ui/tktile/tkconst.py index cbfa3a7b..a2bd30ad 100644 --- a/pysollib/ui/tktile/tkconst.py +++ b/pysollib/ui/tktile/tkconst.py @@ -21,23 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['EVENT_HANDLED', - 'EVENT_PROPAGATE', - 'CURSOR_DRAG', - 'CURSOR_WATCH', - 'CURSOR_DOWN_ARROW', - 'ANCHOR_CENTER', - 'ANCHOR_N', - 'ANCHOR_NW', - 'ANCHOR_NE', - 'ANCHOR_S', - 'ANCHOR_SW', - 'ANCHOR_SE', - 'ANCHOR_W', - 'ANCHOR_E', - 'TOOLBAR_BUTTONS', - ] - # imports from six.moves import tkinter diff --git a/pysollib/ui/tktile/tkutil.py b/pysollib/ui/tktile/tkutil.py index f2f5083f..67e5f026 100644 --- a/pysollib/ui/tktile/tkutil.py +++ b/pysollib/ui/tktile/tkutil.py @@ -21,30 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['wm_withdraw', - 'wm_deiconify', - 'wm_map', - 'wm_get_geometry', - # 'setTransient', - # 'makeToplevel', - 'make_help_toplevel', - 'bind', - 'unbind_destroy', - 'after', - 'after_idle', - 'after_cancel', - # 'makeImage', - 'copyImage', - 'loadImage', - # 'fillImage', - 'createImage', - 'shadowImage', - 'markImage', - 'createBottom', - 'resizeBottom', - 'get_text_width', - ] - # imports import re from six.moves import tkinter diff --git a/pysollib/ui/tktile/tkwrap.py b/pysollib/ui/tktile/tkwrap.py index 9f312acc..a52af25e 100644 --- a/pysollib/ui/tktile/tkwrap.py +++ b/pysollib/ui/tktile/tkwrap.py @@ -21,9 +21,6 @@ # # --------------------------------------------------------------------------- -__all__ = ['TclError', - 'MfxRoot'] - # imports from six.moves import tkinter from pysollib.ui.tktile.tkconst import EVENT_PROPAGATE diff --git a/pysollib/util.py b/pysollib/util.py index 589c8982..ff4497e3 100644 --- a/pysollib/util.py +++ b/pysollib/util.py @@ -21,30 +21,6 @@ # # ---------------------------------------------------------------------------## -__all__ = ['SUITS', - 'COLORS', - 'RANKS', - 'ACE', - 'JACK', - 'QUEEN', - 'KING', - 'ANY_SUIT', - 'ANY_COLOR', - 'ANY_RANK', - 'NO_SUIT', - 'NO_COLOR', - 'NO_RANK', - 'UNLIMITED_MOVES', - 'UNLIMITED_ACCEPTS', - 'UNLIMITED_CARDS', - 'NO_REDEAL', - 'UNLIMITED_REDEALS', - 'VARIABLE_REDEALS', - 'CARDSET', - 'IMAGE_EXTENSIONS', - 'DataLoader', - ] - # imports import sys import os diff --git a/scripts/pygettext.py b/scripts/pygettext.py index 8e0860ab..b39b3b83 100755 --- a/scripts/pygettext.py +++ b/scripts/pygettext.py @@ -16,6 +16,14 @@ # Added very simple support for ngettext # +import os +import imp +import glob +import time +import getopt +import token +import tokenize +import operator import sys import functools @@ -162,15 +170,6 @@ Options: If `inputfile' is -, standard input is read. """) -import os -import imp -import glob -import time -import getopt -import token -import tokenize -import operator - if sys.version_info > (3,): basestring = str