diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-09-01 17:17:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-09-01 17:17:22 (GMT) |
commit | e5c1d294b185a9b7aa46067976e6ed2819392269 (patch) | |
tree | 86f457c44f7f3faf85d4cf45cb5c3bdf786df1cd /Lib/lib2to3/refactor.py | |
parent | f7feaec16c6d21cbb3c6c5c9b84288dd3095c005 (diff) | |
download | cpython-e5c1d294b185a9b7aa46067976e6ed2819392269.zip cpython-e5c1d294b185a9b7aa46067976e6ed2819392269.tar.gz cpython-e5c1d294b185a9b7aa46067976e6ed2819392269.tar.bz2 |
Merged revisions 65887,65889,65967-65968,65981 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65887 | benjamin.peterson | 2008-08-19 17:45:04 -0500 (Tue, 19 Aug 2008) | 1 line
allow the raw_input fixer to handle calls after the raw_input (ie. raw_input().split())
........
r65889 | benjamin.peterson | 2008-08-19 18:11:03 -0500 (Tue, 19 Aug 2008) | 1 line
no need for 2.4 compatibility now
........
r65967 | benjamin.peterson | 2008-08-21 18:43:37 -0500 (Thu, 21 Aug 2008) | 1 line
allow a Call to have no arguments
........
r65968 | benjamin.peterson | 2008-08-21 18:45:13 -0500 (Thu, 21 Aug 2008) | 1 line
add a fixer for sys.exc_info etc by Jeff Balogh #2357
........
r65981 | benjamin.peterson | 2008-08-22 15:41:30 -0500 (Fri, 22 Aug 2008) | 1 line
add a fixer to add parenthese for list and gen comps #2367
........
Diffstat (limited to 'Lib/lib2to3/refactor.py')
-rwxr-xr-x | Lib/lib2to3/refactor.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py index bd95f3d..1691041 100755 --- a/Lib/lib2to3/refactor.py +++ b/Lib/lib2to3/refactor.py @@ -69,13 +69,7 @@ def main(fixer_dir, args=None): return 2 # Set up logging handler - if sys.version_info < (2, 4): - hdlr = logging.StreamHandler() - fmt = logging.Formatter('%(name)s: %(message)s') - hdlr.setFormatter(fmt) - logging.root.addHandler(hdlr) - else: - logging.basicConfig(format='%(name)s: %(message)s', level=logging.INFO) + logging.basicConfig(format='%(name)s: %(message)s', level=logging.INFO) # Initialize the refactoring tool rt = RefactoringTool(fixer_dir, options) |