summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-01-26 13:04:43 (GMT)
committerGuido van Rossum <guido@python.org>1993-01-26 13:04:43 (GMT)
commit35fb82a33f4bc78be1f7d219b8ebd078b37c90cb (patch)
tree1075bc3db6c7e05e13fb9e247b447c1e085c3cfe /Lib/os.py
parent93f07400737a430ce642b4e7f6c9bd3e4460229c (diff)
downloadcpython-35fb82a33f4bc78be1f7d219b8ebd078b37c90cb.zip
cpython-35fb82a33f4bc78be1f7d219b8ebd078b37c90cb.tar.gz
cpython-35fb82a33f4bc78be1f7d219b8ebd078b37c90cb.tar.bz2
* os.py: _exit doesn't exist in all variations of posix
* Added fcmp() to test_support.py and use it in test*.py
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 556268f..dc1ef5a 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -18,7 +18,10 @@
try:
from posix import *
- from posix import _exit
+ try:
+ from posix import _exit
+ except ImportError:
+ pass
name = 'posix'
curdir = '.'
pardir = '..'