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 21
21
from .doc import get_rest_doc
22
22
23
23
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__ ))
25
26
27
+ gen_banner = autogen_top + '''
26
28
cdef class Gen_auto:
27
29
"""
28
30
Part of the :class:`Gen` class containing auto-generated functions.
29
31
30
32
This class is not meant to be used directly, use the derived class
31
33
:class:`Gen` instead.
32
34
"""
33
- ''' .format (os .path .relpath (__file__ , os .getcwd ()))
34
-
35
- instance_banner = '''# This file is auto-generated by {}
35
+ '''
36
36
37
+ instance_banner = autogen_top + '''
37
38
cdef class Pari_auto:
38
39
"""
39
40
Part of the :class:`Pari` class containing auto-generated functions.
40
41
41
42
You must never use this class directly (in fact, Python may crash
42
43
if you do), use the derived class :class:`Pari` instead.
43
44
"""
44
- ''' .format (os .path .relpath (__file__ , os .getcwd ()))
45
-
46
- decl_banner = '''# This file is auto-generated by {}
45
+ '''
47
46
47
+ decl_banner = autogen_top + '''
48
48
from .types cimport *
49
49
50
50
cdef extern from *:
51
- ''' . format ( __file__ )
51
+ '''
52
52
53
53
54
54
function_re = re .compile (r"^[A-Za-z][A-Za-z0-9_]*$" )
You can’t perform that action at this time.
0 commit comments