Commit Graph

19 Commits

Author SHA1 Message Date
Brian Curtin be80ab4b83 Merged revisions 86192 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86192 | brian.curtin | 2010-11-05 09:48:35 -0500 (Fri, 05 Nov 2010) | 3 lines

  Shift the pipe-using code into an else block, then close the pipe
  in finally. Removes two ResourceWarnings.
........
2010-11-05 14:56:16 +00:00
Brian Curtin c89b734d32 Merged revisions 86009 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86009 | brian.curtin | 2010-10-30 20:10:58 -0500 (Sat, 30 Oct 2010) | 2 lines

  Fix ResourceWarning for unclosed files (from os.popen)
........
2010-10-31 01:16:45 +00:00
Ronald Oussoren 76002c8f1d The uuid library on OSX 10.5 seems to contain the same bug as the one
on OSX 10.6, therefore don't use it there either.

This fixes issue8621.
2010-06-27 12:43:47 +00:00
Ronald Oussoren 3320696371 The C function used by uuid.uuid4 is broken on
OSX 10.6 in that after os.fork() the parent and
child generate the same sequence of UUIDs.

This patch falls back to the the Python implementation
on OSX 10.6 or later.

Fixes issue #8621.
2010-05-05 14:48:37 +00:00
Antoine Pitrou 04437ebadd Fix py3k warnings in the uuid module 2009-10-14 19:09:48 +00:00
Amaury Forgeot d'Arc d42941751c #4363: Let uuid.uuid1() and uuid.uuid4() run even if the ctypes module is not present.
Will backport to 2.6
2008-11-21 22:05:48 +00:00
Georg Brandl 8ec5754086 uuid creation is now threadsafe, backport from py3k rev. 57375. 2007-08-24 06:10:01 +00:00
Brett Cannon c2aa09ad80 Have the sha module raise a DeprecationWarning as specified in PEP 4. 2007-05-31 19:20:00 +00:00
Brett Cannon 7eec217908 Have md5 raise a DeprecationWarning as per PEP 4. 2007-05-30 22:24:28 +00:00
Martin v. Löwis 2eb8c4f292 Bug #1541863: uuid.uuid1 failed to generate unique identifiers
on systems with low clock resolution.
2006-08-18 03:47:18 +00:00
Ka-Ping Yee b1cb56ad17 Update code and tests to support the 'bytes_le' attribute (for
little-endian byte order on Windows), and to work around clocks
with low resolution yielding duplicate UUIDs.

Anthony Baxter has approved this change.
2006-08-16 07:02:50 +00:00
Neal Norwitz 175001db9e If the executable doesn't exist, there's no reason to try to start it.
This prevents garbage about command not found being printed on Solaris.
2006-07-29 20:20:52 +00:00
Neal Norwitz 46fc6a08f6 Try to find the MAC addr on various flavours of Unix. This seems hopeless.
The reduces the test_uuid failures, but there's still another method failing.
2006-07-28 07:21:27 +00:00
Tim Peters 750c4420a8 Live with that "the hardware address" is an ill-defined
concept, and that different ways of trying to find "the
hardware address" may return different results.  Certainly
true on both of my Windows boxes, and in different ways
(see whining on python-dev).
2006-07-28 04:51:59 +00:00
Georg Brandl 75a832d4e7 Make uuid test suite pass on this box by requesting output with LC_ALL=C. 2006-07-27 16:08:15 +00:00
Ka-Ping Yee 3dbc8916f5 Remove Python 2.3 compatibility comment. 2006-06-19 22:49:36 +00:00
Tim Peters 2adc626bb5 Added missing svn:eol-style property to text files. 2006-06-13 00:30:50 +00:00
Tim Peters edd66fa7e9 Whitespace normalization. 2006-06-13 00:30:01 +00:00
Ka-Ping Yee f9eb82f252 Add the uuid module.
This module has been tested so far on Windows XP (Python 2.4 and 2.5a2),
Mac OS X (Python 2.3, 2.4, and 2.5a2), and Linux (Python 2.4 and 2.5a2).
2006-06-12 23:47:52 +00:00