Skip to content

Commit 16ca30d

Browse files
author
Joshua Thomas Przyborowski
authored
Add files via upload
1 parent c785e9c commit 16ca30d

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pycatfile.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ def decode_unicode_escape(value):
319319
if("NekoFile" not in __file_format_multi_dict__):
320320
__file_format_multi_dict__.update( { 'NekoFile': {'format_name': "NekoFile", 'format_magic': "NekoFile", 'format_lower': "nekofile", 'format_len': 8, 'format_hex': "4e656b6f46696c65", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".neko" } } )
321321
if("ねこファイル" not in __file_format_multi_dict__):
322-
__file_format_multi_dict__.update( { 'ねこファイル': {'format_name': "NekoFairu", 'format_magic': "ねこファイル", 'format_lower': "nekofairu", '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': ".ねこ" } } )
322+
__file_format_multi_dict__.update( { 'ねこファイル': {'format_name': "NekoFairu", 'format_magic': "ねこファイル", 'format_lower': "nekofairu", 'format_len': 21, 'format_hex': "e381ade38193e38395e382a1e382a4e383ab", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".ねこ" } } )
323323
if("네코파일" not in __file_format_multi_dict__):
324-
__file_format_multi_dict__.update( { '네코파일': {'format_name': "NekoPa-il", 'format_magic': "네코파일", 'format_lower': "nekopa-il", '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': ".네코" } } )
324+
__file_format_multi_dict__.update( { '네코파일': {'format_name': "NekoPa-il", 'format_magic': "네코파일", 'format_lower': "nekopa-il", 'format_len': 12, 'format_hex': "eb84a4ecbd94ed8c8cec9dbc", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".네코" } } )
325325
if("고양이파일" not in __file_format_multi_dict__):
326326
__file_format_multi_dict__.update( { '고양이파일': {'format_name': "GoyangiPa-il", 'format_magic': "고양이파일", 'format_lower': "goyangipa-il", 'format_len': 15, 'format_hex': "eab3a0ec9691ec9db4ed8c8cec9dbc", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".고양이" } } )
327327
if("内酷法伊鲁" not in __file_format_multi_dict__):
@@ -1530,13 +1530,6 @@ def __exit__(self, exc_type, exc_value, traceback):
15301530
self.close()
15311531

15321532

1533-
def ConvertEncoding(text, from_encoding, to_encoding):
1534-
"""Converts a string from one encoding to another."""
1535-
decoded_text = text.decode(from_encoding)
1536-
encoded_text = decoded_text.encode(to_encoding)
1537-
return encoded_text
1538-
1539-
15401533
def TarFileCheck(infile):
15411534
try:
15421535
if is_tarfile(infile):

0 commit comments

Comments
 (0)