comparison babel/messages/checkers.py @ 366:1cc8aba0363e

Fixed a typo in the message checkers (tests will follow)
author aronacher
date Wed, 25 Jun 2008 17:56:19 +0000
parents 86fb56f7d5c8
children f03cc3bed4e1
comparison
equal deleted inserted replaced
365:87a95f817145 366:1cc8aba0363e
157 type_map = dict(a) 157 type_map = dict(a)
158 for name, typechar in b: 158 for name, typechar in b:
159 if name not in type_map: 159 if name not in type_map:
160 raise TranslationError('unknown named placeholder %r' % name) 160 raise TranslationError('unknown named placeholder %r' % name)
161 elif not _compatible(typechar, type_map[name]): 161 elif not _compatible(typechar, type_map[name]):
162 raise TranslationErrorError('incompatible format for ' 162 raise TranslationError('incompatible format for '
163 'placeholder %r: ' 163 'placeholder %r: '
164 '%r and %r are not compatible' % 164 '%r and %r are not compatible' %
165 (name, typechar, type_map[name])) 165 (name, typechar, type_map[name]))
166 166
167 167
168 def _find_checkers(): 168 def _find_checkers():
169 try: 169 try:
170 from pkg_resources import working_set 170 from pkg_resources import working_set
Copyright (C) 2012-2017 Edgewall Software