diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1998-04-15 14:35:16 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1998-04-15 14:35:16 (GMT) |
commit | b8fd1f18abb43cd2da6c410bb2925e7a3aa7d24b (patch) | |
tree | a5cac42c78fe79934cb11b14c789245409cd0c75 | |
parent | c84cb9511b110a4c66d909cda18274f0e0a911d4 (diff) | |
download | cpython-b8fd1f18abb43cd2da6c410bb2925e7a3aa7d24b.zip cpython-b8fd1f18abb43cd2da6c410bb2925e7a3aa7d24b.tar.gz cpython-b8fd1f18abb43cd2da6c410bb2925e7a3aa7d24b.tar.bz2 |
Tabnanny fixes
-rw-r--r-- | Mac/Demo/waste/htmled.py | 14 | ||||
-rw-r--r-- | Mac/Lib/lib-toolbox/aetypes.py | 2 | ||||
-rw-r--r-- | Mac/Lib/macostools.py | 12 |
3 files changed, 14 insertions, 14 deletions
diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py index 5750f9d..5aa0207 100644 --- a/Mac/Demo/waste/htmled.py +++ b/Mac/Demo/waste/htmled.py @@ -790,15 +790,15 @@ class Wed(Application): class MyHTMLParser(htmllib.HTMLParser): def anchor_bgn(self, href, name, type): - self.anchor = href - if self.anchor: - self.anchorlist.append(href) - self.formatter.push_style('anchor') + self.anchor = href + if self.anchor: + self.anchorlist.append(href) + self.formatter.push_style('anchor') def anchor_end(self): - if self.anchor: - self.anchor = None - self.formatter.pop_style() + if self.anchor: + self.anchor = None + self.formatter.pop_style() def getfontnames(): 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) |