Add index parameter to Plugins

Change constructor to HHC to accept an index arg, so that file reads can seek
This commit is contained in:
Worros
2009-07-17 17:45:22 +08:00
parent 61b0b8f4fe
commit 34932c14ee
8 changed files with 20 additions and 14 deletions
+2 -2
View File
@@ -36,12 +36,12 @@ class Fulltilt(HandHistoryConverter):
re_Board = re.compile(r"\[(?P<CARDS>.+)\]")
# NB: if we ever match "Full Tilt Poker" we should also match "FullTiltPoker", which PT Stud erroneously exports.
def __init__(self, in_path = '-', out_path = '-', follow = False, autostart=True):
def __init__(self, in_path = '-', out_path = '-', follow = False, autostart=True, index=0):
"""\
in_path (default '-' = sys.stdin)
out_path (default '-' = sys.stdout)
follow : whether to tail -f the input"""
HandHistoryConverter.__init__(self, in_path, out_path, sitename="Fulltilt", follow=follow)
HandHistoryConverter.__init__(self, in_path, out_path, sitename="Fulltilt", follow=follow, index=index)
logging.info("Initialising Fulltilt converter class")
self.filetype = "text"
self.codepage = "cp1252"