Commit decc4b99 authored by Guido van Rossum's avatar Guido van Rossum

Use ImportError

parent 1820010c
...@@ -5,7 +5,7 @@ import sys ...@@ -5,7 +5,7 @@ import sys
try: try:
import mac import mac
os = mac os = mac
except NameError: except ImportError:
import posix import posix
os = posix os = posix
from stat import * from stat import *
......
...@@ -5,7 +5,7 @@ import sys ...@@ -5,7 +5,7 @@ import sys
try: try:
import mac import mac
os = mac os = mac
except NameError: except ImportError:
import posix import posix
os = posix os = posix
from stat import * from stat import *
......
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