1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Made flake8 happier.

Removed __all__ and stuff - we use explicit imports now.
This commit is contained in:
Shlomi Fish 2017-09-18 13:04:53 +03:00
parent 1dec576b1a
commit b887d6042b
126 changed files with 8 additions and 496 deletions

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# Imports
import sys
import re

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# Imports
import sys
from gettext import ungettext

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
import time

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# Imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# Imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports

View file

@ -21,10 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# imports
# PySol imports
from pysollib.mygettext import _
from pysollib.gamedb import registerGame, GameInfo, GI

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# Imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = []
# Imports
import math
import time

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# Imports
# PySol imports
@ -60,7 +58,6 @@ from pysollib.stack import \
cardsFaceUp, \
WasteTalonStack
# ************************************************************************
# * Flower Clock
# ***********************************************************************/

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# PySol imports
from pysollib.mygettext import _
from pysollib.gamedb import registerGame, GameInfo, GI

View file

@ -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 _

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# Imports
import math

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# Imports
import math

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# Imports
import math

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# Imports
# Ultrasol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = []
# imports
# PySol imports

View file

@ -21,18 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = [
'BmpImagePlugin',
'GifImagePlugin',
'Image',
'ImageOps',
'ImageTk',
'JpegImagePlugin',
'PngImagePlugin',
'PpmImagePlugin',
'UnpicklingError',
]
# imports
import sys
import os

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['ColorsDialog']
# imports
from pysollib.mygettext import _
# import os, sys

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['EditTextDialog']
# imports
# PySol imports

View file

@ -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

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = ['FontsDialog']
# imports
# import os, sys
# import types

View file

@ -22,8 +22,6 @@
# ---------------------------------------------------------------------------##
__all__ = ['GameInfoDialog']
# # imports
# import os, sys
# from six.moves import tkinter

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['PlayerOptionsDialog']
# imports
import gobject
import gtk

View file

@ -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

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['TimeoutsDialog']
# imports
# import os, sys
from pysollib.mygettext import _

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = ['HTMLViewer']
# imports
import os
import sys

View file

@ -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

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['ColorsDialog']
from pysollib.ui.tktile.colorsdialog import BaseColorsDialog
from pysollib.tile.basetilemfxdialog import BaseTileMfxDialog

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['EditTextDialog']
# imports
# Toolkit imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = ['FontsDialog']
# imports
from six.moves import tkinter
from . import ttk

View file

@ -21,9 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['GameInfoDialog']
import pysollib.ui.tktile.gameinfodialog
from pysollib.tile.basetilemfxdialog import BaseTileMfxDialog

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['PysolMenubarTk']
# imports
from . import ttk

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['PlayerOptionsDialog']
# imports
from six.moves import tkinter
from . import ttk

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = ['PysolProgressBar']
# imports
from six.moves import tkinter
from . import ttk

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['SelectCardsetDialogWithPreview']
# imports
import os
from six.moves import tkinter

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['SelectDialogTreeData']
# Toolkit imports
from .tktree import MfxTreeLeaf, MfxTreeNode, MfxTreeInCanvas

View file

@ -21,14 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = [
# 'SolverDialog',
'create_solver_dialog',
'connect_game_solver_dialog',
'destroy_solver_dialog',
'reset_solver_dialog',
]
# imports
# PySol imports

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = ['SoundOptionsDialog']
# imports
import os
from six.moves import tkinter

View file

@ -21,9 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['PysolStatusbar',
'HelpStatusbar']
# imports
import os
import sys

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['TimeoutsDialog']
# imports
from six.moves import tkinter
from . import ttk

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['HTMLViewer']
# imports
import os
import sys

View file

@ -21,15 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['SingleGame_StatsDialog',
'AllGames_StatsDialog',
'FullLog_StatsDialog',
'SessionLog_StatsDialog',
'Status_StatsDialog',
'Top_StatsDialog',
'ProgressionDialog',
]
# imports
import os
import time

View file

@ -21,16 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = ['MfxDialog',
'MfxMessageDialog',
'MfxExceptionDialog',
'MfxSimpleEntry',
'PysolAboutDialog',
'MfxTooltip',
'MfxScrolledCanvas',
'StackDesc',
]
# imports
import sys
import os

View file

@ -21,8 +21,6 @@
#
# ---------------------------------------------------------------------------##
__all__ = ['PysolToolbarTk']
# imports
import os
from six.moves import tkinter

View file

@ -21,9 +21,6 @@
#
# ---------------------------------------------------------------------------
__all__ = ['WizardDialog']
# imports
import sys

Some files were not shown because too many files have changed in this diff Show more