mirror of
https://github.com/python/cpython.git
synced 2025-10-12 18:02:39 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
e6ddc8b20b
commit
182b5aca27
453 changed files with 31318 additions and 31452 deletions
|
@ -55,7 +55,7 @@ class _ArgumentList(object):
|
|||
|
||||
def dump_decls(self, f):
|
||||
pass
|
||||
|
||||
|
||||
class NoArgs(_ArgumentList):
|
||||
|
||||
def __init__(self, args):
|
||||
|
@ -67,7 +67,7 @@ class NoArgs(_ArgumentList):
|
|||
return "PyObject *self"
|
||||
|
||||
class OneArg(_ArgumentList):
|
||||
|
||||
|
||||
def __init__(self, args):
|
||||
assert len(args) == 1
|
||||
super(OneArg, self).__init__(args)
|
||||
|
@ -139,7 +139,7 @@ class Function:
|
|||
|
||||
if self.__doc__:
|
||||
p(template.docstring)
|
||||
|
||||
|
||||
d = {"name" : self.vars["CName"],
|
||||
"args" : self.args.c_args(),
|
||||
}
|
||||
|
@ -149,13 +149,13 @@ class Function:
|
|||
|
||||
if self.args.ml_meth == METH_VARARGS:
|
||||
p(template.varargs)
|
||||
|
||||
|
||||
p(template.funcdef_end)
|
||||
|
||||
def analyze(self):
|
||||
self.__doc__ = self._func.__doc__
|
||||
self.args = ArgumentList(self._func, self.method)
|
||||
|
||||
|
||||
def initvars(self):
|
||||
v = self.vars = {}
|
||||
v["PythonName"] = self._func.__name__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue