This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AspectHooks: | |
pre_rules = list() | |
around_rules = list() | |
post_rules = list() | |
def __enter__(self, *args, **kwargs): | |
self.old_import = __import__ | |
import builtins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from inspect import isfunction, isclass, ismethod | |
import re | |
import builtins | |
from functools import wraps, partial, reduce | |
from copy import deepcopy | |
import ast | |
import copy | |
import inspect |
OlderNewer