comparison tools/pygettext.py @ 405:f0b234ce301f

Typo fix
author Jürgen Hermann <jhermann@users.sourceforge.net>
date Thu, 22 Nov 2001 15:09:40 +0000
parents 3844451f7a30
children c64ce58ee529
comparison
equal deleted inserted replaced
404:3844451f7a30 405:f0b234ce301f
275 self.__state = self.__waiting 275 self.__state = self.__waiting
276 elif ttype == tokenize.STRING: 276 elif ttype == tokenize.STRING:
277 self.__data.append(safe_eval(tstring)) 277 self.__data.append(safe_eval(tstring))
278 elif ttype not in [tokenize.COMMENT, token.INDENT, token.DEDENT, 278 elif ttype not in [tokenize.COMMENT, token.INDENT, token.DEDENT,
279 token.NEWLINE, tokenize.NL]: 279 token.NEWLINE, tokenize.NL]:
280 # warn if we seen anything else than STRING or whitespace 280 # warn if we see anything else than STRING or whitespace
281 print >>sys.stderr, _('*** %(file)s:%(lineno)s: Seen unexpected token "%(token)s"') % { 281 print >>sys.stderr, _('*** %(file)s:%(lineno)s: Seen unexpected token "%(token)s"') % {
282 'token': tstring, 'file': self.__curfile, 'lineno': self.__lineno} 282 'token': tstring, 'file': self.__curfile, 'lineno': self.__lineno}
283 self.__state = self.__waiting 283 self.__state = self.__waiting
284 284
285 def set_filename(self, filename): 285 def set_filename(self, filename):

Roundup Issue Tracker: http://roundup-tracker.org/