mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Remove underscore from module names
This commit is contained in:
@@ -6,7 +6,7 @@ import struct
|
||||
from collections import defaultdict
|
||||
from zlib import crc32
|
||||
|
||||
from ..source_builder import SourceBuilder
|
||||
from ..sourcebuilder import SourceBuilder
|
||||
from ..utils import snake_to_camel_case
|
||||
|
||||
AUTO_GEN_NOTICE = \
|
||||
@@ -650,7 +650,7 @@ def generate_tlobjects(tlobjects, layer, import_depth, output_dir):
|
||||
_write_modules(get_file('types'), import_depth, 'TLObject',
|
||||
namespace_types, type_constructors)
|
||||
|
||||
filename = os.path.join(get_file('all_tlobjects.py'))
|
||||
filename = os.path.join(get_file('alltlobjects.py'))
|
||||
with open(filename, 'w', encoding='utf-8') as file:
|
||||
with SourceBuilder(file) as builder:
|
||||
_write_all_tlobjects(tlobjects, layer, builder)
|
||||
@@ -663,6 +663,6 @@ def clean_tlobjects(output_dir):
|
||||
if os.path.isdir(d):
|
||||
shutil.rmtree(d)
|
||||
|
||||
tl = get_file('all_tlobjects.py')
|
||||
tl = get_file('alltlobjects.py')
|
||||
if os.path.isfile(tl):
|
||||
os.remove(tl)
|
||||
|
Reference in New Issue
Block a user