git.samba.org
/
third_party
/
asn1ate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0e060c
)
Emit a comment with module name before every module
author
Kim Gräsman
<kim.grasman@gmail.com>
Sun, 13 May 2018 11:34:20 +0000
(13:34 +0200)
committer
Kim Gräsman
<kim.grasman@gmail.com>
Sun, 9 Jun 2019 12:16:54 +0000
(14:16 +0200)
asn1ate/pyasn1gen.py
patch
|
blob
|
history
diff --git
a/asn1ate/pyasn1gen.py
b/asn1ate/pyasn1gen.py
index 579ac61413b62956a5fb1e6dd41d183f265eeb0b..42c1bb022cfb1830394690bd7ee452917827a451 100755
(executable)
--- a/
asn1ate/pyasn1gen.py
+++ b/
asn1ate/pyasn1gen.py
@@
-126,6
+126,7
@@
class Pyasn1Backend(object):
}
def generate_code(self):
+ self.writer.write_line('# %s' % self.sema_module.name)
self.writer.write_line('from pyasn1.type import univ, char, namedtype, namedval, tag, constraint, useful')
for module in self.referenced_modules:
if module is not self.sema_module: