Attempt at fixing redundant import from ee01724 (#357)

This commit is contained in:
Lonami Exo 2017-10-22 11:12:42 +02:00
parent 6759beac21
commit 5f0faee013

View File

@ -129,6 +129,8 @@ class TLGenerator:
builder.writeln( builder.writeln(
'from {}.tl.tlobject import TLObject'.format('.' * depth) 'from {}.tl.tlobject import TLObject'.format('.' * depth)
) )
if ns:
# Only import the parent types if we're not in such file
builder.writeln( builder.writeln(
'from {}.tl import types'.format('.' * depth) 'from {}.tl import types'.format('.' * depth)
) )