Pure-Python asynchronous interface to Gearman
Go to file
Morgan Fainberg 46fcc461b6 Do not change object size when iterating
In `gear.Server._lostConnection()` the jobs list pulls .values() from
`conn.related_jobs`, in `gear.server._removeJob()` it is possible to
change the conn.related_jobs dictionary which will cause a
`RuntimeError: dictionary changed size during iteration` exception to
be raised in python 3 since .values() is an iterator instead of a
rendered list() like in python 2. This RuntimeError is eliminated
by forcing the python 2 behavior by wrapping the `.values()` call
to be wrapped into an explicit list.

Change-Id: I730473f3200a427cce774df534f1ff4958866dac
2016-05-29 23:08:05 +00:00
doc/source Merge "Generate a geard.8 manpage for Debian packaging" 2014-10-12 17:09:51 +00:00
gear Do not change object size when iterating 2016-05-29 23:08:05 +00:00
.gitignore Add pbr-based setup. 2013-04-08 12:31:53 -04:00
.gitreview Added .gitreview 2013-04-05 18:53:07 +00:00
.testr.conf Support python3. 2013-06-05 15:07:36 -07:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 11:46:08 -08:00
LICENSE Initial commit. 2013-04-05 12:58:12 -07:00
MANIFEST.in Add pbr-based setup. 2013-04-08 12:31:53 -04:00
README.rst Add pbr-based setup. 2013-04-08 12:31:53 -04:00
requirements.txt Revert "Pin python-daemon to <2.0" 2015-02-02 19:51:37 -08:00
setup.cfg Add server command: "geard". 2013-06-20 16:48:40 -07:00
setup.py Solve hacking/pbr requirements conflict 2014-02-11 21:20:38 +00:00
test-requirements.txt Add SSL functional test 2015-03-11 09:45:26 -07:00
tox.ini Rename doc environment to docs 2014-09-08 13:47:17 -07:00

README.rst

python-gear

A pure-Python asynchronous library to interface with Gearman.