mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Another batch of updates...
This commit is contained in:
parent
52a42fe9e7
commit
a8763e54ff
20 changed files with 842 additions and 62 deletions
|
@ -106,8 +106,14 @@ def choose_boundary():
|
|||
import socket
|
||||
import os
|
||||
hostid = socket.gethostbyname(socket.gethostname())
|
||||
uid = `os.getuid()`
|
||||
pid = `os.getpid()`
|
||||
try:
|
||||
uid = `os.getuid()`
|
||||
except:
|
||||
uid = '1'
|
||||
try:
|
||||
pid = `os.getpid()`
|
||||
except:
|
||||
pid = '1'
|
||||
seed = `rand.rand()`
|
||||
_prefix = hostid + '.' + uid + '.' + pid
|
||||
timestamp = `int(time.time())`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue