summaryrefslogtreecommitdiff
path: root/cherrypy/process
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2018-05-26 17:28:22 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2018-05-26 17:28:22 +0200
commitb25099c4274a7b8b1db9382bbebc7b3ade7802de (patch)
tree459bdeb93b0b6d57b2e77a58d945e067cf855936 /cherrypy/process
parent71e0c44f342cde2ea1f5c244e8fc7918a63c8567 (diff)
downloadcherrypy-git-b25099c4274a7b8b1db9382bbebc7b3ade7802de.tar.gz
Fix property setters
Diffstat (limited to 'cherrypy/process')
-rw-r--r--cherrypy/process/plugins.py6
-rw-r--r--cherrypy/process/win32.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py
index 7b3fc7ee..1fb6be60 100644
--- a/cherrypy/process/plugins.py
+++ b/cherrypy/process/plugins.py
@@ -239,7 +239,7 @@ class DropPrivileges(SimplePlugin):
return self._uid
@uid.setter
- def _set_uid(self, val):
+ def uid(self, val):
if val is not None:
if pwd is None:
self.bus.log('pwd module not available; ignoring uid.',
@@ -255,7 +255,7 @@ class DropPrivileges(SimplePlugin):
return self._gid
@gid.setter
- def _set_gid(self, val):
+ def gid(self, val):
if val is not None:
if grp is None:
self.bus.log('grp module not available; ignoring gid.',
@@ -275,7 +275,7 @@ class DropPrivileges(SimplePlugin):
return self._umask
@umask.setter
- def _set_umask(self, val):
+ def umask(self, val):
if val is not None:
try:
os.umask
diff --git a/cherrypy/process/win32.py b/cherrypy/process/win32.py
index 8b79cbbb..096b0278 100644
--- a/cherrypy/process/win32.py
+++ b/cherrypy/process/win32.py
@@ -95,7 +95,7 @@ class Win32Bus(wspbus.Bus):
return self._state
@state.setter
- def _set_state(self, value):
+ def state(self, value):
self._state = value
event = self._get_state_event(value)
win32event.PulseEvent(event)