summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-04-15 14:35:16 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-04-15 14:35:16 (GMT)
commitb8fd1f18abb43cd2da6c410bb2925e7a3aa7d24b (patch)
treea5cac42c78fe79934cb11b14c789245409cd0c75 /Mac/Lib
parentc84cb9511b110a4c66d909cda18274f0e0a911d4 (diff)
downloadcpython-b8fd1f18abb43cd2da6c410bb2925e7a3aa7d24b.zip
cpython-b8fd1f18abb43cd2da6c410bb2925e7a3aa7d24b.tar.gz
cpython-b8fd1f18abb43cd2da6c410bb2925e7a3aa7d24b.tar.bz2
Tabnanny fixes
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/lib-toolbox/aetypes.py2
-rw-r--r--Mac/Lib/macostools.py12
2 files changed, 7 insertions, 7 deletions
diff --git a/Mac/Lib/lib-toolbox/aetypes.py b/Mac/Lib/lib-toolbox/aetypes.py
index 4bdc93c..a4840c5 100644
--- a/Mac/Lib/lib-toolbox/aetypes.py
+++ b/Mac/Lib/lib-toolbox/aetypes.py
@@ -530,7 +530,7 @@ class ComponentItem(SelectableItem):
if self._elemdict.has_key(name):
cls = self._elemdict[name]
return DelayedComponentItem(cls, self)
- if self._propdict.has_key(name):
+ if self._propdict.has_key(name):
cls = self._propdict[name]
return cls(self)
raise AttributeError, name
diff --git a/Mac/Lib/macostools.py b/Mac/Lib/macostools.py
index 374d3f1..c6035b4 100644
--- a/Mac/Lib/macostools.py
+++ b/Mac/Lib/macostools.py
@@ -30,12 +30,12 @@ def mkalias(src, dst, relative=None):
"""Create a finder alias"""
srcfss = macfs.FSSpec(src)
dstfss = macfs.FSSpec(dst)
- if relative:
- relativefss = macfs.FSSpec(relative)
- # ik mag er geen None in stoppen :-(
- alias = srcfss.NewAlias(relativefss)
- else:
- alias = srcfss.NewAlias()
+ if relative:
+ relativefss = macfs.FSSpec(relative)
+ # ik mag er geen None in stoppen :-(
+ alias = srcfss.NewAlias(relativefss)
+ else:
+ alias = srcfss.NewAlias()
srcfinfo = srcfss.GetFInfo()
Res.FSpCreateResFile(dstfss, srcfinfo.Creator, srcfinfo.Type, -1)