diff options
author | Jesse Noller <jnoller@gmail.com> | 2008-08-19 19:06:19 (GMT) |
---|---|---|
committer | Jesse Noller <jnoller@gmail.com> | 2008-08-19 19:06:19 (GMT) |
commit | 5bc9f4c09c99eb701dbee83fb9e26eed558e474f (patch) | |
tree | 8eea24fb14c899f2d51d3206fa4a9b032159220a /Lib/multiprocessing/forking.py | |
parent | 7c972f971ce46fb2a0c6e0b49265b8d4ef2a0773 (diff) | |
download | cpython-5bc9f4c09c99eb701dbee83fb9e26eed558e474f.zip cpython-5bc9f4c09c99eb701dbee83fb9e26eed558e474f.tar.gz cpython-5bc9f4c09c99eb701dbee83fb9e26eed558e474f.tar.bz2 |
issue3352: clean up the multiprocessing API to remove many get_/set_ methods and convert them to properties. Update the docs and the examples included.
Diffstat (limited to 'Lib/multiprocessing/forking.py')
-rw-r--r-- | Lib/multiprocessing/forking.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/forking.py b/Lib/multiprocessing/forking.py index cb7f323..7eda991 100644 --- a/Lib/multiprocessing/forking.py +++ b/Lib/multiprocessing/forking.py @@ -360,7 +360,7 @@ else: sys_argv=sys.argv, log_to_stderr=_log_to_stderr, orig_dir=process.ORIGINAL_DIR, - authkey=process.current_process().get_authkey(), + authkey=process.current_process().authkey, ) if _logger is not None: @@ -407,7 +407,7 @@ def prepare(data): old_main_modules.append(sys.modules['__main__']) if 'name' in data: - process.current_process().set_name(data['name']) + process.current_process().name = data['name'] if 'authkey' in data: process.current_process()._authkey = data['authkey'] |