diff options
Diffstat (limited to 'Lib/plat-mac/icopen.py')
-rw-r--r-- | Lib/plat-mac/icopen.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Lib/plat-mac/icopen.py b/Lib/plat-mac/icopen.py index 99e866ecf5c..eea60837975 100644 --- a/Lib/plat-mac/icopen.py +++ b/Lib/plat-mac/icopen.py @@ -42,18 +42,18 @@ import __builtin__ _builtin_open = globals().get('_builtin_open', __builtin__.open) def _open_with_typer(*args): - file = _builtin_open(*args) - filename = args[0] - mode = 'r' - if args[1:]: - mode = args[1] - if mode[0] == 'w': - from ic import error, settypecreator - try: - settypecreator(filename) - except error: - pass - return file + file = _builtin_open(*args) + filename = args[0] + mode = 'r' + if args[1:]: + mode = args[1] + if mode[0] == 'w': + from ic import error, settypecreator + try: + settypecreator(filename) + except error: + pass + return file __builtin__.open = _open_with_typer |