Commit 6b928b7f authored by Evan Simpson's avatar Evan Simpson

Allow default arguments.

parent 9a7b1764
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
This provides support for simulating function signatures This provides support for simulating function signatures
""" """
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
class FuncCode: class FuncCode:
...@@ -104,7 +104,7 @@ class FuncCode: ...@@ -104,7 +104,7 @@ class FuncCode:
# This is meant to be imported directly into a class. # This is meant to be imported directly into a class.
def _setFuncSignature(self, defaults, varnames, argcount): def _setFuncSignature(self, defaults=None, varnames=(), argcount=0):
# Generate a change only if we have to. # Generate a change only if we have to.
if self.func_defaults != defaults: if self.func_defaults != defaults:
self.func_defaults = defaults self.func_defaults = defaults
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment