diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/test/test_pointers.py | 2 | ||||
-rwxr-xr-x | Lib/lib-tk/Tix.py | 4 | ||||
-rw-r--r-- | Lib/markupbase.py | 2 | ||||
-rw-r--r-- | Lib/plat-mac/EasyDialogs.py | 4 | ||||
-rwxr-xr-x | Lib/smtplib.py | 2 | ||||
-rw-r--r-- | Lib/test/test_builtin.py | 2 | ||||
-rw-r--r-- | Lib/test/test_tempfile.py | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/Lib/ctypes/test/test_pointers.py b/Lib/ctypes/test/test_pointers.py index 600bb75..a7a2802 100644 --- a/Lib/ctypes/test/test_pointers.py +++ b/Lib/ctypes/test/test_pointers.py @@ -133,7 +133,7 @@ class PointersTestCase(unittest.TestCase): self.failUnlessEqual(p[0], 42) self.failUnlessEqual(p.contents.value, 42) - def test_charpp( self ): + def test_charpp(self): """Test that a character pointer-to-pointer is correctly passed""" dll = CDLL(_ctypes_test.__file__) func = dll._testfunc_c_p_p diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py index 14c3c24..33ac519 100755 --- a/Lib/lib-tk/Tix.py +++ b/Lib/lib-tk/Tix.py @@ -468,7 +468,7 @@ class DisplayStyle: """DisplayStyle - handle configuration options shared by (multiple) Display Items""" - def __init__(self, itemtype, cnf={}, **kw ): + def __init__(self, itemtype, cnf={}, **kw): master = _default_root # global from Tkinter if not master and cnf.has_key('refwindow'): master=cnf['refwindow'] elif not master and kw.has_key('refwindow'): master= kw['refwindow'] @@ -480,7 +480,7 @@ class DisplayStyle: def __str__(self): return self.stylename - def _options(self, cnf, kw ): + def _options(self, cnf, kw): if kw and cnf: cnf = _cnfmerge((cnf, kw)) elif kw: diff --git a/Lib/markupbase.py b/Lib/markupbase.py index 85b07a2..24808d1 100644 --- a/Lib/markupbase.py +++ b/Lib/markupbase.py @@ -140,7 +140,7 @@ class ParserBase: # Internal -- parse a marked section # Override this to handle MS-word extension syntax <![if word]>content<![endif]> - def parse_marked_section( self, i, report=1 ): + def parse_marked_section(self, i, report=1): rawdata= self.rawdata assert rawdata[i:i+3] == '<![', "unexpected call to parse_marked_section()" sectName, j = self._scan_name( i+3, i ) diff --git a/Lib/plat-mac/EasyDialogs.py b/Lib/plat-mac/EasyDialogs.py index c622d30..b33d1be 100644 --- a/Lib/plat-mac/EasyDialogs.py +++ b/Lib/plat-mac/EasyDialogs.py @@ -262,7 +262,7 @@ class ProgressBar: self.w.ShowWindow() self.d.DrawDialog() - def __del__( self ): + def __del__(self): if self.w: self.w.BringToFront() self.w.HideWindow() @@ -274,7 +274,7 @@ class ProgressBar: self.w.BringToFront() self.w.SetWTitle(newstr) - def label( self, *newstr ): + def label(self, *newstr): """label(text) - Set text in progress box""" self.w.BringToFront() if newstr: diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 07916cc..9c8c4fa 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -150,7 +150,7 @@ class SSLFakeFile: It only supports what is needed in smtplib. """ - def __init__( self, sslobj): + def __init__(self, sslobj): self.sslobj = sslobj def readline(self): diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index ed28153..dcc565a 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -362,7 +362,7 @@ class BuiltinTest(unittest.TestCase): _cells = {} def __setitem__(self, key, formula): self._cells[key] = formula - def __getitem__(self, key ): + def __getitem__(self, key): return eval(self._cells[key], globals(), self) ss = SpreadSheet() diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index e274c5b..aeaa77e 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -390,7 +390,7 @@ test_classes.append(test_gettempdir) class test_mkstemp(TC): """Test mkstemp().""" - def do_create(self, dir=None, pre="", suf="", ): + def do_create(self, dir=None, pre="", suf=""): if dir is None: dir = tempfile.gettempdir() try: |