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

Ran 2to3 on pysollib/[a-s]*.py

This commit is contained in:
Shlomi Fish 2017-04-28 14:29:31 +03:00
parent d8ba8f7136
commit 2878620e6c

View file

@ -92,9 +92,6 @@ __all__ = ['cardsFaceUp',
'ArbitraryStack',
]
# imports
import types
from pysollib.mygettext import _
# PySol imports
from pysollib.mfxutil import Struct, kwdefault, SubclassResponsibility
@ -388,9 +385,9 @@ class Stack:
self.can_hide_cards = self.is_visible
if self.cap.max_cards < 3:
self.can_hide_cards = 0
elif filter(None, self.CARD_XOFFSET):
elif [_f for _f in self.CARD_XOFFSET if _f]:
self.can_hide_cards = 0
elif filter(None, self.CARD_YOFFSET):
elif [_f for _f in self.CARD_YOFFSET if _f]:
self.can_hide_cards = 0
elif self.canvas.preview:
self.can_hide_cards = 0
@ -3174,7 +3171,6 @@ class ArbitraryStack(OpenStack):
# self.cap override any call-time cap
class StackWrapper:
def __init__(self, stack_class, **cap):
assert isinstance(stack_class, types.ClassType)
assert issubclass(stack_class, Stack)
self.stack_class = stack_class
self.cap = cap