[pywin32-checkins] pywin32/Pythonwin/pywin/idle AutoIndent.py, 1.5, 1.6 CallTips.py, 1.3, 1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-27 03:53:31
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/idle In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31031/pythonwin/pywin/idle Modified Files: AutoIndent.py CallTips.py Log Message: Replace backticks with explicit repr() calls. Index: CallTips.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/idle/CallTips.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CallTips.py 9 Aug 2008 16:47:07 -0000 1.3 --- CallTips.py 27 Nov 2008 03:53:25 -0000 1.4 *************** *** 188,192 **** if get_arg_text(t) != expected: failed.append(t) ! print "%s - expected %s, but got %s" % (t, `expected`, `get_arg_text(t)`) print "%d of %d tests failed" % (len(failed), len(tests)) --- 188,192 ---- if get_arg_text(t) != expected: failed.append(t) ! print "%s - expected %s, but got %s" % (t, repr(expected), repr(get_arg_text(t))) print "%d of %d tests failed" % (len(failed), len(tests)) Index: AutoIndent.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/idle/AutoIndent.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** AutoIndent.py 26 Nov 2008 01:32:59 -0000 1.5 --- AutoIndent.py 27 Nov 2008 03:53:25 -0000 1.6 *************** *** 127,131 **** self.context_use_ps1 = value else: ! raise KeyError("bad option name: %s" % `key`) # If ispythonsource and guess are true, guess a good value for --- 127,131 ---- self.context_use_ps1 = value else: ! raise KeyError("bad option name: %s" % repr(key)) # If ispythonsource and guess are true, guess a good value for *************** *** 255,259 **** for context in self.num_context_lines: startat = max(lno - context, 1) ! startatindex = `startat` + ".0" rawtext = text.get(startatindex, "insert") y.set_str(rawtext) --- 255,259 ---- for context in self.num_context_lines: startat = max(lno - context, 1) ! startatindex = repr(startat) + ".0" rawtext = text.get(startatindex, "insert") y.set_str(rawtext) *************** *** 287,291 **** self.reindent_to(y.compute_backslash_indent()) else: ! assert 0, "bogus continuation type " + `c` return "break" --- 287,291 ---- self.reindent_to(y.compute_backslash_indent()) else: ! assert 0, "bogus continuation type " + repr(c) return "break" |