Inside the pycurl callback, we can't raise exceptions, because the pycurl extension module will unconditionally print the exception itself, and not pass it up to the caller. Instead, we have the callback return a value that tells curl to abort. (-1 would be best, in case we were given 0 bytes, but the extension doesn't support that either). This resolves the 'Exception("should die")' problem when interrupting a streaming generator like stream_extract. |
||
---|---|---|
datetime_tz | ||
nilmdb | ||
tests | ||
.coveragerc | ||
.gitignore | ||
design.md | ||
Makefile | ||
nilmtool.py | ||
README.txt | ||
runserver.py | ||
runtests.py | ||
setup.cfg | ||
time-bxintersect | ||
timeit.sh | ||
TODO |
sudo apt-get install python2.7 python-cherrypy3 python-decorator python-nose python-coverage sudo apt-get install cython # 0.17.1-1 or newer