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
[global] | |
wheel-dir = /home/cougar/.cache/pip/wheelhouse | |
find-links = file:///home/cougar/.cache/pip/wheelhouse |
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
@decorator | |
def f(): | |
pass | |
# is the same as | |
def f(): | |
pass | |
f = decorator(f) |
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
>>> import dis | |
>>> def f(): | |
... with x as y: | |
... print "HI" | |
... | |
... | |
... | |
>>> dis.dis(f.func_code) | |
3 0 LOAD_GLOBAL 0 (x) | |
3 SETUP_WITH 12 (to 18) |
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
def perfomerer_for(intent): | |
def decorator(f): | |
f.performer_for = intent) | |
return f | |
return decorator | |
def make_dispatcher(performers): | |
TypeDispatcher({p.performer_for: p for p in performers}) |
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
def from_effect(f): | |
@wraps | |
def wrapper(self, *args, **kwargs): | |
return self._performer(f(*args, **kwargs)) | |
wrapper.effectfully = f | |
return wrapper | |
class Stuff(object): |
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
diff --git a/twisted/web2/test/test_static.py b/twisted/web2/test/test_static.py | |
index 9db134a..24bb0d1 100644 | |
--- a/twisted/web2/test/test_static.py | |
+++ b/twisted/web2/test/test_static.py | |
@@ -47,7 +47,7 @@ class TestData(BaseCase): | |
class TestFileSaver(BaseCase): | |
- def setUpClass(self): | |
+ def setUp(self): |
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
Exception: | |
Traceback (most recent call last): | |
File "/Users/cougar/dev/tmp-83d539b3e47fa7c3/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main | |
status = self.run(options, args) | |
File "/Users/cougar/dev/tmp-83d539b3e47fa7c3/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run | |
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) | |
File "/Users/cougar/dev/tmp-83d539b3e47fa7c3/lib/python2.7/site-packages/pip/req.py", line 1229, in prepare_files | |
req_to_install.run_egg_info() | |
File "/Users/cougar/dev/tmp-83d539b3e47fa7c3/lib/python2.7/site-packages/pip/req.py", line 330, in run_egg_info | |
"%(Name)s==%(Version)s" % self.pkg_info()) |
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
diff --git a/fabfile.py b/fabfile.py | |
index 83ec681..78238a1 100644 | |
--- a/fabfile.py | |
+++ b/fabfile.py | |
@@ -168,9 +168,24 @@ class Buildslave(service.Service): | |
'bzip2-devel', | |
]) | |
+ # Fedora python3 | |
+ #package.install([ |
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
[global] | |
download-cache = ~/.cache/pip/downloads | |
wheel-dir = /home/tomprince/.cache/pip/wheelhouse | |
find-links = file:///home/tomprince/.cache/pip/wheelhouse |
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 SchemaNotProvided(Exception): | |
""" | |
Tried to reference a schema that wasn't predefined. | |
""" | |
class LocalRefResolver(RefResolver): | |
""" | |
A L{RefResolver} that doesn't try to resolve remote schema. | |
""" | |
def resolve_remote(self, uri): |