Commit f959222a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_type.use): Don't use +=.

(reader.getc_eofok): Ditto.
(lexer.toplevel_rarg): Ditto.
(lexer.toplevel_aarg): Ditto.
parent b9d8b225
......@@ -68,7 +68,7 @@ class prot_a_type:
return self.__line
def use(self):
self.__usage_count += 1
self.__usage_count = self.__usage_count + 1
if self.__usage_count == 1:
self.use_recurse()
......@@ -242,7 +242,7 @@ class reader:
self.__eof = 1
return None
self.__line = list(line)
self.__line_no += 1
self.__line_no = self.__line_no + 1
ret = self.__line[0]
del self.__line[0]
if not self.__quoted:
......@@ -548,7 +548,7 @@ class lexer:
if not self.__args.has_key(arg):
self.error(line_no, "undefined argument ``%s''" % (arg, ))
return
self.__args[arg][1] += 1
self.__args[arg][1] = self.__args[arg][1] + 1
def toplevel_amindex(self, arg, line_no):
if self.__node_name != arg:
......@@ -658,7 +658,7 @@ class lexer:
if not self.__args.has_key(arg):
self.error(line_no, "undefined argument ``%s''" % (arg, ))
return
self.__args[arg][1] += 1
self.__args[arg][1] = self.__args[arg][1] + 1
def toplevel_bye(self, arg, line_no):
if self.__findex != None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment