| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | 🎨 Adjust line length in code across the repo | Sviatoslav Sydorenko | 2023-01-05 | 1 | -1/+1 |
| | | | | | This patch makes it shorter to fit the 79 char limit. | ||||
| * | Use context managers to close files properly and fix tests on PyPy | Michał Górny | 2022-02-01 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use context managers (`with`) to ensure that all open files are closed correctly. This resolves resource leaks and test failures with PyPy3.7. The code prior to this change used four approaches for closing files: 1. Using a context manager (`with` clause). 2. Using a try/finally clause. 3. Closing the file in the same scope (unreliable: file object can leak on exception). 4. Not closing open files at all. The last point is a real problem for PyPy since it does not GC unreachable objects as aggressively as CPython does. While leaving a function scope on CPython causes the file objects private to it to be destroyed (and therefore closed), in PyPy they can stay dangling for some time. When combines with buffered writes, this means that writes can still remain pending after returning from function. Using a context manager is a simple, consistent way to ensure that the file object is closed once it is no longer needed. In turn, this guarantees that all pending writes will be performed upon function return and the code won't be hiting race conditions between writing a file and reading it afterwards. | ||||
| * | Don't use deprecated camelCase functions from threading module. | Dominic Davis-Foster | 2021-06-07 | 3 | -9/+9 |
| | | |||||
| * | Merge pull request #1769 from robinchow/master | Sviatoslav Sydorenko | 2019-03-28 | 1 | -2/+2 |
| |\ | | | | | Reduced log level for non-error events in win32.py | ||||
| | * | Reduced log level for non-error events in win32.py | Robin Chow | 2019-02-14 | 1 | -2/+2 |
| | | | |||||
| * | | Revert "publish should be called when the state is changed" | Jason R. Coombs | 2019-03-27 | 1 | -1/+1 |
| |/ | | | | This reverts commit 20bc9dbf617c61b8c2b7e847d3b88caeabfd6528. | ||||
| * | Correct the loglevel to INFO for sucessful case | jvisu | 2019-01-03 | 1 | -2/+2 |
| | | | | | This fix is done to correct the loglevel. The loglevel is set to ERROR for successful case also. Updated to INFO level. For more details check url https://github.com/cherrypy/cherrypy/issues/1762 | ||||
| * | Use always_iterable in Bus.wait | Jason R. Coombs | 2018-12-09 | 1 | -4/+3 |
| | | |||||
| * | publish should be called when the state is changed | Ian Otto | 2018-11-21 | 1 | -1/+1 |
| | | | | publish should not be called during every wait cycle, only after the wait has found the correct state | ||||
| * | Fix incorrect copying of module names @ autoreload | Sviatoslav Sydorenko | 2018-09-30 | 1 | -1/+4 |
| | | |||||
| * | Copy modules before iteration in autoreloader | Sviatoslav Sydorenko | 2018-09-28 | 1 | -1/+1 |
| | | | | | Fixes #1744 | ||||
| * | Remove references to threading._* in Python 3.2 and earlier. | Jason R. Coombs | 2018-09-04 | 1 | -2/+2 |
| | | |||||
| * | Remove reliance on six | Jason R. Coombs | 2018-09-02 | 2 | -5/+2 |
| | | |||||
| * | Correct typo in args reconstruction guessing code | Sviatoslav Sydorenko | 2018-07-08 | 1 | -1/+1 |
| | | | | | Fixes #1721 | ||||
| * | Revert "Fix suggested by Andrew Stromnov to let psyco play nice with ↵ | Sviatoslav Sydorenko | 2018-06-16 | 1 | -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 pydocstyle | Sviatoslav Sydorenko | 2018-06-16 | 1 | -1/+1 |
| | | |||||
| * | Don't attempt to make None absolute. Fixes #1697. | Jason R. Coombs | 2018-05-28 | 1 | -1/+1 |
| | | |||||
| * | Extract module to file mapping as _file_for_module classmethod. | Jason R. Coombs | 2018-05-28 | 1 | -19/+32 |
| | | | | | Avoids condition where zip check always produces an AttributeError in the failure stack even when irrelevant. | ||||
| * | Use filter instead of if/continue block. | Jason R. Coombs | 2018-05-28 | 1 | -3/+4 |
| | | |||||
| * | Fix property setters | Sviatoslav Sydorenko | 2018-05-26 | 2 | -4/+4 |
| | | |||||
| * | Upgrade @property decorator syntax | Sviatoslav Sydorenko | 2018-05-26 | 2 | -18/+19 |
| | | |||||
| * | Rewrite generation of file list for tracking | Sviatoslav Sydorenko | 2017-12-23 | 1 | -11/+14 |
| | | | | | Fixes #1675 | ||||
| * | Single quotes | Jason R. Coombs | 2017-11-10 | 1 | -1/+1 |
| | | |||||
| * | Prefer loops to copy paste | Jason R. Coombs | 2017-11-10 | 1 | -22/+13 |
| | | |||||
| * | Harmonize technique | Jason R. Coombs | 2017-11-10 | 1 | -6/+4 |
| | | |||||
| * | Consolidate error message rendering | Jason R. Coombs | 2017-11-10 | 1 | -8/+8 |
| | | |||||
| * | Merge pull request #1656 from cherrypy/feature/single-subscribe | Jason R. Coombs | 2017-11-10 | 1 | -6/+13 |
| |\ | | | | | Use single subscribe method for decorator or direct invocation | ||||
| | * | Fix partial so the positional argument is 'callback' and not 'channel'. | Jason R. Coombs | 2017-10-29 | 1 | -1/+1 |
| | | | |||||
| | * | Merge branch 'master' into feature/single-subscribe | Jason R. Coombs | 2017-10-29 | 1 | -2/+5 |
| | |\ | |||||
| | * | | Alternatively, engine.subscribe now allows calling without a callback, in ↵ | Jason R. Coombs | 2017-10-29 | 1 | -6/+13 |
| | | | | | | | | | | | | | which case it creates the decorator. | ||||
| * | | | Extract static method for daemonization for testing #1659. | Jason R. Coombs | 2017-11-10 | 1 | -8/+15 |
| | | | | |||||
| * | | | Regarding E305, honor the style guide rather than suppressing errors. | Jason R. Coombs | 2017-10-29 | 2 | -3/+7 |
| | |/ |/| | |||||
| * | | Redocument | Jason R. Coombs | 2017-10-29 | 1 | -1/+1 |
| | | | |||||
| * | | Use __all__ to avoid linter errors | Jason R. Coombs | 2017-10-29 | 1 | -2/+5 |
| |/ | |||||
| * | Add cherrypy.engine.subscribe for nicer, linter-friendly syntax when ↵ | Jason R. Coombs | 2017-10-29 | 1 | -0/+5 |
| | | | | | subscribing a callback. | ||||
| * | Remove exemption for extra long lines. Updated code to conform with standard ↵ | Jason R. Coombs | 2017-10-28 | 1 | -2/+3 |
| | | | | | 79 character limitation. Fixes #1652. | ||||
| * | Update comments | Jason R. Coombs | 2017-10-28 | 1 | -3/+4 |
| | | |||||
| * | Use short-circuits and reindent to allow the single-line invocation of ↵ | Jason R. Coombs | 2017-10-28 | 1 | -9/+10 |
| | | | | | portend.occupied, required by older Pythons. | ||||
| * | Feed the hobgoblins (delint). | Jason R. Coombs | 2017-10-27 | 1 | -3/+1 |
| | | |||||
| * | Feed the hobgoblins (delint). | Jason R. Coombs | 2017-10-27 | 3 | -10/+19 |
| | | |||||
| * | Fix PEP 257 docstring errors in process.wspbus | Sviatoslav Sydorenko | 2017-08-10 | 1 | -7/+9 |
| | | |||||
| * | Fix super() args in process.wspbus.ChannelFailures | Sviatoslav Sydorenko | 2017-08-10 | 1 | -1/+1 |
| | | | | | Reported by lgtm.com service | ||||
| * | Mark docstrings with slash escaping as raw str (PR #1610 by @scop) | Ville Skyttä | 2017-07-10 | 2 | -2/+2 |
| | | | | | * https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior (Python 3.6 invalid escape sequence deprecation) | ||||
| * | Spelling fixes | Ville Skyttä | 2017-07-10 | 1 | -1/+1 |
| | | |||||
| * | Use six to resolve _thread module | Jason R. Coombs | 2017-07-09 | 1 | -3/+5 |
| | | |||||
| * | Remove _args_from_interpreter_flags backport | Jason R. Coombs | 2017-07-08 | 1 | -3/+2 |
| | | |||||
| * | PEP8fy codebase: eliminated F821 flake8 error | Sviatoslav Sydorenko | 2017-03-12 | 1 | -0/+1 |
| | | | | | | | | Also fix usage of undeclared variables inroduces in commits: * 9913ddbc3 * c4b693e11 * d3c9807ba | ||||
| * | PEP8fy codebase: eliminated E303 flake8 error | Sviatoslav Sydorenko | 2017-03-11 | 1 | -2/+0 |
| | | |||||
| * | PEP8fy codebase: eliminated E129 flake8 error | Sviatoslav Sydorenko | 2017-03-11 | 1 | -5/+4 |
| | | |||||
| * | PEP8fy codebase: eliminated E305 flake8 error | Sviatoslav Sydorenko | 2017-03-11 | 2 | -3/+3 |
| | | |||||
