This file contains hidden or 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
| #!/usr/bin/env python | |
| import sys | |
| from timeit import repeat | |
| import blinker | |
| def instrumentable(*event_names): | |
| def _decorate(_cls): | |
| _cls._instruments = {n: [] for n in event_names} |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import sys | |
| from timeit import repeat | |
| import blinker | |
| class Plain(object): | |
| def __init__(self): | |
| self.receivers = {} |
This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am jek on github. | |
| * I am jek (https://keybase.io/jek) on keybase. | |
| * I have a public key whose fingerprint is BA13 5658 8491 8EDC 2F2B 9390 A2F1 AD34 EC80 1BBF | |
| To claim this, I am signing this object: |
This file contains hidden or 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
| dir=$(pwd -P) | |
| until [ $dir = '/' ]; do | |
| [[ -e "${dir}/.hg" ]] && vcs=hg && break | |
| [[ -e "${dir}/.git" ]] && vcs=git && break | |
| dir=$(dirname ${dir}) | |
| done | |
| if [ -z $vcs ]; then | |
| echo "error: not in a git or hg repo" 1>&2 && exit 1 | |
| else |
This file contains hidden or 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
| diff --git a/testsuite/E225not.py b/testsuite/E225not.py | |
| index ee24510..a6960b7 100644 | |
| --- a/testsuite/E225not.py | |
| +++ b/testsuite/E225not.py | |
| @@ -7,3 +7,4 @@ foo(bar, key='word', *args, **kwargs) | |
| baz(**kwargs) | |
| negative = -1 | |
| spam(-1) | |
| +fn = lambda *args: args |