@@ -301,13 +301,13 @@ def decode_unicode_escape(value):
301301 "newstyle" , "advancedlist" , "altinode"
302302 ]
303303 if all (key in config [section ] for key in required_keys ):
304- __file_format_multi_dict__ .update ({decode_unicode_escape (config .get (section , 'magic' )): {'format_name' : config .get (section , 'name' ), 'format_magic' : decode_unicode_escape (config .get (section , 'magic' )), 'format_lower' : config .get (section , 'lower' ), 'format_len' : config .getint (section , 'len' ), 'format_hex' : config .get (section , 'hex' ), 'format_delimiter' : decode_unicode_escape (config .get (section , 'delimiter' )), 'format_ver' : config .get (section , 'ver' ), 'new_style' : config .getboolean (section , 'newstyle' ), 'use_advanced_list' : config .getboolean (section , 'advancedlist' ), 'use_alt_inode' : config .getboolean (section , 'altinode' ), 'format_extension' : config .get (section , 'extension' ), 'program_name' : config .get (section , 'proname' )} } )
304+ __file_format_multi_dict__ .update ({decode_unicode_escape (config .get (section , 'magic' )): {'format_name' : config .get (section , 'name' ), 'format_magic' : decode_unicode_escape (config .get (section , 'magic' )), 'format_lower' : config .get (section , 'lower' ), 'format_len' : config .getint (section , 'len' ), 'format_hex' : config .get (section , 'hex' ), 'format_delimiter' : decode_unicode_escape (config .get (section , 'delimiter' )), 'format_ver' : config .get (section , 'ver' ), 'new_style' : config .getboolean (section , 'newstyle' ), 'use_advanced_list' : config .getboolean (section , 'advancedlist' ), 'use_alt_inode' : config .getboolean (section , 'altinode' ), 'format_extension' : decode_unicode_escape ( config .get (section , 'extension' )) , 'program_name' : decode_unicode_escape ( config .get (section , 'proname' ) )} } )
305305if ("CatFile" not in __file_format_multi_dict__ ):
306306 __file_format_multi_dict__ .update ({'CatFile' : {'format_name' : "CatFile" , 'format_magic' : "CatFile" , 'format_lower' : "catfile" , 'format_len' : 7 , 'format_hex' : "43617446696c65" , 'format_delimiter' : "\x00 " , 'format_ver' : "001" , 'new_style' : True , 'use_advanced_list' : True , 'use_alt_inode' : False , 'format_extension' : ".cat" , 'program_name' : "PyCatFile" } } )
307307if ("ねこファイル" not in __file_format_multi_dict__ ):
308- __file_format_multi_dict__ .update ({'ねこファイル' : {'format_name' : "NekoFile" , 'format_magic' : "ねこファイル" , 'format_lower' : "nekofile" , 'format_len' : 21 , 'format_hex' : "e381ade38193e38395e382a1e382a4e383abe" , 'format_delimiter' : "\x00 " , 'format_ver' : "001" , 'new_style' : True , 'use_advanced_list' : True , 'use_alt_inode' : False , 'format_extension' : ".neko " , 'program_name' : "PyNekoFile" } } )
308+ __file_format_multi_dict__ .update ({'ねこファイル' : {'format_name' : "NekoFile" , 'format_magic' : "ねこファイル" , 'format_lower' : "nekofile" , 'format_len' : 21 , 'format_hex' : "e381ade38193e38395e382a1e382a4e383abe" , 'format_delimiter' : "\x00 " , 'format_ver' : "001" , 'new_style' : True , 'use_advanced_list' : True , 'use_alt_inode' : False , 'format_extension' : ".ねこ " , 'program_name' : "PyNekoFile" } } )
309309if ("네코파일" not in __file_format_multi_dict__ ):
310- __file_format_multi_dict__ .update ({'네코파일' : {'format_name' : "NekoFile" , 'format_magic' : "네코파일" , 'format_lower' : "nekofile" , 'format_len' : 15 , 'format_hex' : "eb84a4ecbd94ed8c8c" , 'format_delimiter' : "\x00 " , 'format_ver' : "001" , 'new_style' : True , 'use_advanced_list' : True , 'use_alt_inode' : False , 'format_extension' : ".neko " , 'program_name' : "PyNekoFile" } } )
310+ __file_format_multi_dict__ .update ({'네코파일' : {'format_name' : "NekoFile" , 'format_magic' : "네코파일" , 'format_lower' : "nekofile" , 'format_len' : 15 , 'format_hex' : "eb84a4ecbd94ed8c8c" , 'format_delimiter' : "\x00 " , 'format_ver' : "001" , 'new_style' : True , 'use_advanced_list' : True , 'use_alt_inode' : False , 'format_extension' : ".네코 " , 'program_name' : "PyNekoFile" } } )
311311__file_format_name__ = __file_format_multi_dict__ [__file_format_default__ ]['format_name' ]
312312__program_name__ = __file_format_multi_dict__ [__file_format_default__ ]['program_name' ]
313313__file_format_lower__ = __file_format_multi_dict__ [__file_format_default__ ]['format_lower' ]
0 commit comments