summaryrefslogtreecommitdiff
path: root/cherrypy/process/wspbus.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "publish should be called when the state is changed"Jason R. Coombs2019-03-271-1/+1
| | | | This reverts commit 20bc9dbf617c61b8c2b7e847d3b88caeabfd6528.
* Use always_iterable in Bus.waitJason R. Coombs2018-12-091-4/+3
|
* publish should be called when the state is changedIan Otto2018-11-211-1/+1
| | | publish should not be called during every wait cycle, only after the wait has found the correct state
* Remove reliance on sixJason R. Coombs2018-09-021-3/+1
|
* Correct typo in args reconstruction guessing codeSviatoslav Sydorenko2018-07-081-1/+1
| | | | Fixes #1721
* Revert "Fix suggested by Andrew Stromnov to let psyco play nice with ↵Sviatoslav Sydorenko2018-06-161-17/+3
| | | | | | | | | | | | | | | | | CherryPy 3.1." This reverts commit e8e77404c7e753105e225a13a56411eb4e07624a. (It effectively removes dead code) From the Psyco website: > 12 March 2012 > > Psyco is unmaintained and dead. Please look at PyPy for the > state-of-the-art in JIT compilers for Python. http://psyco.sourceforge.net/
* Swap pep257 with pydocstyleSviatoslav Sydorenko2018-06-161-1/+1
|
* Merge pull request #1656 from cherrypy/feature/single-subscribeJason R. Coombs2017-11-101-6/+13
|\ | | | | Use single subscribe method for decorator or direct invocation
| * Fix partial so the positional argument is 'callback' and not 'channel'.Jason R. Coombs2017-10-291-1/+1
| |
| * Alternatively, engine.subscribe now allows calling without a callback, in ↵Jason R. Coombs2017-10-291-6/+13
| | | | | | | | which case it creates the decorator.
* | Regarding E305, honor the style guide rather than suppressing errors.Jason R. Coombs2017-10-291-2/+5
| |
* | RedocumentJason R. Coombs2017-10-291-1/+1
|/
* Add cherrypy.engine.subscribe for nicer, linter-friendly syntax when ↵Jason R. Coombs2017-10-291-0/+5
| | | | subscribing a callback.
* Remove exemption for extra long lines. Updated code to conform with standard ↵Jason R. Coombs2017-10-281-2/+3
| | | | 79 character limitation. Fixes #1652.
* Feed the hobgoblins (delint).Jason R. Coombs2017-10-271-3/+1
|
* Feed the hobgoblins (delint).Jason R. Coombs2017-10-271-6/+11
|
* Fix PEP 257 docstring errors in process.wspbusSviatoslav Sydorenko2017-08-101-7/+9
|
* Fix super() args in process.wspbus.ChannelFailuresSviatoslav Sydorenko2017-08-101-1/+1
| | | | Reported by lgtm.com service
* Mark docstrings with slash escaping as raw str (PR #1610 by @scop)Ville Skyttä2017-07-101-1/+1
| | | | * https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior (Python 3.6 invalid escape sequence deprecation)
* Remove _args_from_interpreter_flags backportJason R. Coombs2017-07-081-3/+2
|
* PEP8fy codebase: eliminated E305 flake8 errorSviatoslav Sydorenko2017-03-111-2/+2
|
* Fixup same style string quotes across the repoSviatoslav Sydorenko2017-03-031-1/+1
|
* Fix AssertionError on shutdown (#1564)Krystian Rosiński2017-02-181-11/+5
| | | | | | Fix #1342 * Drop `isAlive()` check since `threading.enumerate()` always iterates alive threads * Simplify check for daemon mode
* Remove unused importJason R. Coombs2017-02-071-1/+0
|
* Don't use a comment where a variable is clearerJason R. Coombs2017-02-071-2/+3
|
* Fix autoreload for cherryd loaded as a moduleSviatoslav Sydorenko2017-01-111-1/+52
| | | | | | | | | Also: * raise RuntimeError when trying to reconstruct `-c` * run cherryd as cherrypy.__main__ module to support Python 2.6 Ref: https://github.com/cherrypy/cherrypy/issues/1545 Ref: python/cpython@418baf9
* Fix a few bugs introduced in ddad387Sviatoslav Sydorenko2016-12-011-2/+2
| | | | | | | Basically, we cannot add ``tuple`` to ``list``. Also, using ``getattr`` instead of ``hasattr`` is more reliable. Ref: #1526
* Don't restart frozen app with interpreter argsSviatoslav Sydorenko2016-12-011-1/+19
| | | | | With this commit I'm trying to get rid of issue #1526: we should not add interpreter arguments while re-spawning the app in ``frozen`` mode
* Handle missing ``ctypes`` in Google AppEngineSviatoslav Sydorenko2016-10-141-3/+16
| | | | Fixes #1512
* Add reconstructed interpreter arguments fromSviatoslav Sydorenko2016-09-271-1/+4
| | | | | | - use sys.flags to guess original args on Python 2.6 - reuse subprocess._args_from_interpreter_flags for higher Pythons - close #1506
* Trap non-existing Py_GetArgcArgvSviatoslav Sydorenko2016-09-271-6/+19
| | | | | | Work around #1506. Currently Windows does not support this function, so falling back to sys.argv. See also: https://chromium.googlesource.com/infra/infra/+/69eb0279c12bcede5937ce9298020dd4581e38dd%5E!/
* Re-spawn app with the original interpreter args (#1504)Sviatoslav Sydorenko2016-09-211-3/+26
| | | Fix #1500
* Drop Python<2.6 compatibility crutchesSviatoslav Sydorenko2016-09-161-3/+1
| | | | | | | - float('inf') - cookies delimiter - @tools.accept() - super(Exception, self)
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-13/+13
| | | | pre-commit run double-quote-string-fixer --all-files
* Use setdefault for simplicityJason R. Coombs2016-07-241-3/+2
|
* Pass the environment variable(s) inJason R. Coombs2016-07-161-4/+4
|
* Extract variables to avoid duplicative calls and hanging indentsJason R. Coombs2016-07-161-4/+7
|
* Extract method for extending pythonpath, converting the comments to a ↵Jason R. Coombs2016-07-161-13/+22
| | | | docstring, and re-writing it in the imperative voice rather than first person.
* Try to do the right thing when autoreloading a process invoked with 'python ↵Max Bolingbroke2016-07-011-0/+14
| | | | -m' (#1411)
* Remove Python 2.3 compatibility code and use 'sorted' to prepare a sorted listJason R. Coombs2016-05-271-8/+6
|
* Rewrite dict construction, avoiding intermediate list and constructing ↵Jason R. Coombs2016-05-271-2/+4
| | | | channel names in a separate variable
* Replace references to bitbucket tickets with references to github tickets. ↵Jason R. Coombs2016-04-301-3/+3
| | | | Ref #1410.
* Simply get set from builtinsJason R. Coombs2015-12-191-2/+0
|
* More PEP8 work.Gustavo Picon2014-01-121-6/+10
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-5/+12
| | | | | --HG-- branch : autopep8
* Bugfix of a potential deadlock if the main bus is stopped from a differentJoel Rivera2013-08-311-1/+6
| | | | | | | | thread than the main thread, this is the case when is implemented as a windows service. Closing issue #1164 Closing issue #1101
* Fix ticket URLs from http://www.cherrypy.org/ticket/XYZ toMichiel Overtoom2012-06-211-3/+3
| | | | https://bitbucket.org/cherrypy/cherrypy/issue/XYZ
* Removed trailing whitespace from the codebase.Gustavo Picon2012-04-031-43/+43
| | | | sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
* Fixed #1081 (NameError in wspbus.py)Robert Brewer2011-10-131-1/+1
|
* Fixed #1087 (PEP-3333 compliance: Unicode response headers). Also some ↵Robert Brewer2011-10-131-4/+3
| | | | touch-ups to prevent refleaks.