mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-04 10:03:53 +01:00
...
This commit is contained in:
parent
bc433b2650
commit
7ea92e2c67
2 changed files with 3 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ def __default_func(self, line):
|
|||
action = self.__default_dict.get(self.__token_info)
|
||||
if action:
|
||||
action(line)
|
||||
self.__write_obj.write(line)
|
||||
self.__write_obj.write(line)
|
||||
|
||||
def __found_open_bracket_func(self, line):
|
||||
"""
|
||||
|
|
@ -410,7 +410,7 @@ def form_tags(self):
|
|||
self.__token_info = line[:16]
|
||||
self.__set_list_func(line)
|
||||
action = self.__state_dict.get(self.__state)
|
||||
if action == None:
|
||||
if action is None:
|
||||
sys.stderr.write(_('No matching state in module inline_for_lists.py\n'))
|
||||
sys.stderr.write(self.__state + '\n')
|
||||
action(line)
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ def initiate_token_dict(self):
|
|||
self.__return_code = 0
|
||||
self.dict_token={
|
||||
# unicode
|
||||
'mshex' : ('nu', '__________', self.__ms_hex_func),
|
||||
'mshex' : ('nu', '__________', self.__ms_hex_func),
|
||||
# brackets
|
||||
'{' : ('nu', '{', self.ob_func),
|
||||
'}' : ('nu', '}', self.cb_func),
|
||||
|
|
|
|||
Loading…
Reference in a new issue