Revert layer being a property

This commit is contained in:
Lonami Exo 2017-09-17 16:19:53 +02:00
parent aea10b103b
commit b14a7d9e68

View File

@ -83,8 +83,8 @@ class TLGenerator:
builder.writeln('from . import types, functions')
builder.writeln()
# Create a read-only property to indicate which layer this is
builder.writeln('LAYER = property(fget=lambda: {})'.format(
# Create a constant variable to indicate which layer this is
builder.writeln('LAYER = {}'.format(
TLParser.find_layer(scheme_file))
)
builder.writeln()