diff --git a/src/diana/sgfParser/property.py b/src/diana/sgfParser/property.py --- a/src/diana/sgfParser/property.py +++ b/src/diana/sgfParser/property.py @@ -5,8 +5,8 @@ import logging as log from .propValues import choose, singleton, listOf, compose, number, real, double, color, text, empty, anything, point, move, stone from . import skipWhitespace, ParserError -GAME_INFO=1 -UNKNOWN=99 +GAME_INFO = 1 +UNKNOWN = 99 class DateException(Exception): @@ -14,174 +14,184 @@ class DateException(Exception): class Property: - identRegexp=re.compile(r"[A-Z]+") + identRegexp = re.compile(r"[A-Z]+") def __init__(self): - self.name="" - self.value="" + self.name = "" + self.value = "" @staticmethod - def fits(s,i): - return i