File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 2121from .doc import get_rest_doc
2222
2323
24- gen_banner = '''# This file is auto-generated by {}
24+ autogen_top = "# This file is auto-generated by {}\n " .format (
25+ os .path .relpath (__file__ ))
2526
27+ gen_banner = autogen_top + '''
2628cdef class Gen_auto:
2729 """
2830 Part of the :class:`Gen` class containing auto-generated functions.
2931
3032 This class is not meant to be used directly, use the derived class
3133 :class:`Gen` instead.
3234 """
33- ''' .format (os .path .relpath (__file__ , os .getcwd ()))
34-
35- instance_banner = '''# This file is auto-generated by {}
35+ '''
3636
37+ instance_banner = autogen_top + '''
3738cdef class Pari_auto:
3839 """
3940 Part of the :class:`Pari` class containing auto-generated functions.
4041
4142 You must never use this class directly (in fact, Python may crash
4243 if you do), use the derived class :class:`Pari` instead.
4344 """
44- ''' .format (os .path .relpath (__file__ , os .getcwd ()))
45-
46- decl_banner = '''# This file is auto-generated by {}
45+ '''
4746
47+ decl_banner = autogen_top + '''
4848from .types cimport *
4949
5050cdef extern from *:
51- ''' . format ( __file__ )
51+ '''
5252
5353
5454function_re = re .compile (r"^[A-Za-z][A-Za-z0-9_]*$" )
You can’t perform that action at this time.
0 commit comments