diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2019-11-03 06:55:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-03 06:55:46 +0100 |
| commit | c0dd1f4fd9ce7d994aa97dabda964f921604725b (patch) | |
| tree | 778ef7bfc2032119a94c67d3a12705523d2cfcac /src | |
| parent | eb1bdcc5dcaf78fdc9165d9b2f523821b62116e8 (diff) | |
| parent | e84e70bdac0d714f704665c159a374c6b41bc267 (diff) | |
| download | python-decorator-git-c0dd1f4fd9ce7d994aa97dabda964f921604725b.tar.gz | |
Merge pull request #74 from micheles/__file__
Removed __file__
Diffstat (limited to 'src')
| -rw-r--r-- | src/decorator.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decorator.py b/src/decorator.py index 78d227f..d5ac595 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -179,8 +179,7 @@ class FunctionMaker(object): # Ensure each generated function has a unique filename for profilers # (such as cProfile) that depend on the tuple of (<filename>, # <definition line>, <function name>) being unique. - filename = '<%s:decorator-gen-%d>' % ( - __file__, next(self._compile_count)) + filename = '<decorator-gen-%d>' % next(self._compile_count) try: code = compile(src, filename, 'single') exec(code, evaldict) |
