Commit 91cc17d2 authored by Skip Montanaro's avatar Skip Montanaro

Only AttributeError can be raised in this situation - on systems without

getuid or getpid.  posix_getuid & posix_getpid never raise exceptions when
called with no args.
parent 3c4a629b
......@@ -116,11 +116,11 @@ def choose_boundary():
hostid = socket.gethostbyname(socket.gethostname())
try:
uid = `os.getuid()`
except:
except AttributeError:
uid = '1'
try:
pid = `os.getpid()`
except:
except AttributeError:
pid = '1'
_prefix = hostid + '.' + uid + '.' + pid
timestamp = '%.3f' % time.time()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment