mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
Tabnanny fixes
This commit is contained in:
parent
c84cb9511b
commit
b8fd1f18ab
@ -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():
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user