From e84e70bdac0d714f704665c159a374c6b41bc267 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Sun, 3 Nov 2019 06:47:37 +0100 Subject: Remove __file__ --- src/decorator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 (, # , ) being unique. - filename = '<%s:decorator-gen-%d>' % ( - __file__, next(self._compile_count)) + filename = '' % next(self._compile_count) try: code = compile(src, filename, 'single') exec(code, evaldict) -- cgit v1.2.1