diff --git a/src/diana/sgfParser/__init__.py b/src/diana/sgfParser/__init__.py --- a/src/diana/sgfParser/__init__.py +++ b/src/diana/sgfParser/__init__.py @@ -1,12 +1,12 @@ -def skipWhitespace(s, start): +def skip_whitespace(s, start): i = start while i < len(s) and s[i].isspace(): - i+=1 + i += 1 return i -def strRowCol(s, i): +def str_row_col(s, i): k = 0 (r, c) = (0, 0) for (r, line) in enumerate(s.splitlines(True)): @@ -21,7 +21,7 @@ def strRowCol(s, i): class ParserError(Exception): def __init__(self, msg, s, i): self.msg = msg - (self.row, self.col) = strRowCol(s, i) + (self.row, self.col) = str_row_col(s, i) self.context = s[i:i+16] def __str__(self):