Remove underscore from module names

This commit is contained in:
Lonami Exo
2018-06-18 21:02:42 +02:00
parent 262018959f
commit 4e9a84c3b5
19 changed files with 17 additions and 20 deletions

View File

@@ -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)