diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/mimetools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/mimetools.py b/Lib/mimetools.py index 7cf8ad6..eb0ab71 100644 --- a/Lib/mimetools.py +++ b/Lib/mimetools.py @@ -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() |