ziggymac-852:test Ziggy$ cd /Sources/Boost/libs/python/test ziggymac-852:test Ziggy$ ./bjam
...patience...
...patience...
warning:
polymorphism2.py depends on itself
...found 2825 targets...
...updating 708 targets...
common.mkdir ../../../bin.v2/libs/python/test
common.mkdir ../../../bin.v2/libs/python/test/exec.test
common.mkdir ../../../bin.v2/libs/python/test/exec.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/exec.test/darwin-4.2.1/debug
darwin.compile.c++ ../../../bin.v2/libs/python/test/exec.test/darwin-4.2.1/debug/exec.o
common.mkdir ../../../bin.v2/libs/python/build/darwin-4.2.1/debug
common.mkdir ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/numeric.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/list.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/long.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/dict.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/tuple.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/str.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/slice.o
common.mkdir ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/converter
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/converter/from_python.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/converter/registry.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/converter/type_id.o
common.mkdir ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/enum.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/class.o
../../../libs/python/src/object/class.cpp: In function ‘int boost::python::property_init(PyObject*, PyObject*, PyObject*)’:
../../../libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’
../../../libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’
../../../libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’
../../../libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/function.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/inheritance.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/life_support.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/pickle_support.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/errors.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/module.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/converter/builtin_converters.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/converter/arg_to_python_base.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/iterator.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/stl_iterator.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object_protocol.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object_operators.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/wrapper.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/import.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/exec.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/object/function_doc_signature.o
darwin.archive ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/libboost_python.a
darwin.link ../../../bin.v2/libs/python/test/exec.test/darwin-4.2.1/debug/exec
ld: library not found for -lpython3.1
collect2: ld returned 1 exit status
"g++" -L"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1" -o "../../../bin.v2/libs/python/test/exec.test/darwin-4.2.1/debug/exec" "../../../bin.v2/libs/python/test/exec.test/darwin-4.2.1/debug/exec.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/link-static/libboost_python.a" -lpython3.1 -lpython3.1 -g
...failed darwin.link ../../../bin.v2/libs/python/test/exec.test/darwin-4.2.1/debug/exec...
...skipped exec.run for lack of exec...
common.mkdir ../../../bin.v2/libs/python/test/exec-dynamic.test
common.mkdir ../../../bin.v2/libs/python/test/exec-dynamic.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/exec-dynamic.test/darwin-4.2.1/debug
darwin.compile.c++ ../../../bin.v2/libs/python/test/exec-dynamic.test/darwin-4.2.1/debug/exec.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/numeric.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/list.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/long.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/dict.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/tuple.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/str.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/slice.o
common.mkdir ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/from_python.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/registry.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/type_id.o
common.mkdir ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/enum.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/class.o
../../../libs/python/src/object/class.cpp: In function ‘int boost::python::property_init(PyObject*, PyObject*, PyObject*)’:
../../../libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’
../../../libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’
../../../libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’
../../../libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/function.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/inheritance.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/life_support.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/pickle_support.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/errors.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/module.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/builtin_converters.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/arg_to_python_base.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/iterator.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/stl_iterator.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object_protocol.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object_operators.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/wrapper.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/import.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/exec.o
darwin.compile.c++ ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/function_doc_signature.o
darwin.link.dll ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/libboost_python.dylib
ld: library not found for -lpython3.1
collect2: ld returned 1 exit status
"g++" -dynamiclib -Wl,-single_module -install_name "libboost_python.dylib" -L"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1" -o "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/libboost_python.dylib" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/numeric.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/list.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/long.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/dict.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/tuple.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/str.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/slice.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/from_python.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/registry.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/type_id.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/enum.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/class.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/function.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/inheritance.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/life_support.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/pickle_support.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/errors.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/module.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/builtin_converters.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/converter/arg_to_python_base.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/iterator.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/stl_iterator.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object_protocol.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object_operators.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/wrapper.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/import.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/exec.o" "../../../bin.v2/libs/python/build/darwin-4.2.1/debug/object/function_doc_signature.o" -lpython3.1 -headerpad_max_install_names -g
...failed darwin.link.dll ../../../bin.v2/libs/python/build/darwin-4.2.1/debug/libboost_python.dylib...
...skipped exec-dynamic for lack of libboost_python.dylib...
...skipped exec-dynamic.run for lack of exec-dynamic...
common.mkdir ../../../bin.v2/libs/python/test/crossmod_exception.test
common.mkdir ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1/debug
copy crossmod_exception.py
2to3 ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1/debug/crossmod_exception.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1/debug/crossmod_exception.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1/debug/crossmod_exception.py
--- ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1/debug/crossmod_exception.py (original)
+++ ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1/debug/crossmod_exception.py (refactored)
@@ -2,7 +2,7 @@
# Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
# at http://www.boost.org/LICENSE_1_0.txt)
-print "running..."
+print("running...")
import crossmod_exception_a
import crossmod_exception_b
@@ -16,4 +16,4 @@
except IndexError:
pass
-print "Done."
+print("Done.")
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1/debug/crossmod_exception_a.o
...skipped crossmod_exception_a.so for lack of libboost_python.dylib...
darwin.compile.c++ ../../../bin.v2/libs/python/test/crossmod_exception.test/darwin-4.2.1/debug/crossmod_exception_b.o
...skipped crossmod_exception_b.so for lack of libboost_python.dylib...
...skipped crossmod_exception for lack of crossmod_exception_a.so...
common.mkdir ../../../bin.v2/libs/python/test/injected.test
common.mkdir ../../../bin.v2/libs/python/test/injected.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/injected.test/darwin-4.2.1/debug
copy injected.py
2to3 ../../../bin.v2/libs/python/test/injected.test/darwin-4.2.1/debug/injected.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/injected.test/darwin-4.2.1/debug/injected.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/injected.test/darwin-4.2.1/debug/injected.py
--- ../../../bin.v2/libs/python/test/injected.test/darwin-4.2.1/debug/injected.py (original)
+++ ../../../bin.v2/libs/python/test/injected.test/darwin-4.2.1/debug/injected.py (refactored)
@@ -20,9 +20,9 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/injected.test/darwin-4.2.1/debug/injected.o
...skipped injected_ext.so for lack of libboost_python.dylib...
...skipped injected for lack of injected_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/properties.test
common.mkdir ../../../bin.v2/libs/python/test/properties.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/properties.test/darwin-4.2.1/debug
copy properties.py
2to3 ../../../bin.v2/libs/python/test/properties.test/darwin-4.2.1/debug/properties.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/properties.test/darwin-4.2.1/debug/properties.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/properties.test/darwin-4.2.1/debug/properties.py
--- ../../../bin.v2/libs/python/test/properties.test/darwin-4.2.1/debug/properties.py (original)
+++ ../../../bin.v2/libs/python/test/properties.test/darwin-4.2.1/debug/properties.py (refactored)
@@ -99,8 +99,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/properties.test/darwin-4.2.1/debug/properties.o
...skipped properties_ext.so for lack of libboost_python.dylib...
...skipped properties for lack of properties_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/return_arg.test
common.mkdir ../../../bin.v2/libs/python/test/return_arg.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/return_arg.test/darwin-4.2.1/debug
copy return_arg.py
2to3 ../../../bin.v2/libs/python/test/return_arg.test/darwin-4.2.1/debug/return_arg.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/return_arg.test/darwin-4.2.1/debug/return_arg.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/return_arg.test/darwin-4.2.1/debug/return_arg.py
--- ../../../bin.v2/libs/python/test/return_arg.test/darwin-4.2.1/debug/return_arg.py (original)
+++ ../../../bin.v2/libs/python/test/return_arg.test/darwin-4.2.1/debug/return_arg.py (refactored)
@@ -20,8 +20,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/return_arg.test/darwin-4.2.1/debug/return_arg.o
...skipped return_arg_ext.so for lack of libboost_python.dylib...
...skipped return_arg for lack of return_arg_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/staticmethod.test
common.mkdir ../../../bin.v2/libs/python/test/staticmethod.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/staticmethod.test/darwin-4.2.1/debug
...on 100th target...
copy staticmethod.py
2to3 ../../../bin.v2/libs/python/test/staticmethod.test/darwin-4.2.1/debug/staticmethod.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/staticmethod.test/darwin-4.2.1/debug/staticmethod.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/staticmethod.test/darwin-4.2.1/debug/staticmethod.py
--- ../../../bin.v2/libs/python/test/staticmethod.test/darwin-4.2.1/debug/staticmethod.py (original)
+++ ../../../bin.v2/libs/python/test/staticmethod.test/darwin-4.2.1/debug/staticmethod.py (refactored)
@@ -50,8 +50,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/staticmethod.test/darwin-4.2.1/debug/staticmethod.o
...skipped staticmethod_ext.so for lack of libboost_python.dylib...
...skipped staticmethod for lack of staticmethod_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/shared_ptr.test
common.mkdir ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug
copy shared_ptr.py
2to3 ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py
--- ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py (original)
+++ ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py (refactored)
@@ -123,8 +123,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py
--- ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py (original)
+++ ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.py (refactored)
@@ -27,8 +27,8 @@
... def v(self):
... return -Z.v(self);
... def __del__(self):
-... print 'bye'
-...
+... print('bye')
+...
>>> p = P(12)
>>> p.value()
12
darwin.compile.c++ ../../../bin.v2/libs/python/test/shared_ptr.test/darwin-4.2.1/debug/shared_ptr.o
...skipped shared_ptr_ext.so for lack of libboost_python.dylib...
...skipped shared_ptr for lack of shared_ptr_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/enable_shared_from_this.test
common.mkdir ../../../bin.v2/libs/python/test/enable_shared_from_this.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/enable_shared_from_this.test/darwin-4.2.1/debug
copy enable_shared_from_this.py
2to3 ../../../bin.v2/libs/python/test/enable_shared_from_this.test/darwin-4.2.1/debug/enable_shared_from_this.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/enable_shared_from_this.test/darwin-4.2.1/debug/enable_shared_from_this.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/enable_shared_from_this.test/darwin-4.2.1/debug/enable_shared_from_this.py
--- ../../../bin.v2/libs/python/test/enable_shared_from_this.test/darwin-4.2.1/debug/enable_shared_from_this.py (original)
+++ ../../../bin.v2/libs/python/test/enable_shared_from_this.test/darwin-4.2.1/debug/enable_shared_from_this.py (refactored)
@@ -18,9 +18,9 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/enable_shared_from_this.test/darwin-4.2.1/debug/enable_shared_from_this.o
...skipped enable_shared_from_this_ext.so for lack of libboost_python.dylib...
...skipped enable_shared_from_this for lack of enable_shared_from_this_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/andreas_beyer.test
common.mkdir ../../../bin.v2/libs/python/test/andreas_beyer.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/andreas_beyer.test/darwin-4.2.1/debug
copy andreas_beyer.py
2to3 ../../../bin.v2/libs/python/test/andreas_beyer.test/darwin-4.2.1/debug/andreas_beyer.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/andreas_beyer.test/darwin-4.2.1/debug/andreas_beyer.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/andreas_beyer.test/darwin-4.2.1/debug/andreas_beyer.py
--- ../../../bin.v2/libs/python/test/andreas_beyer.test/darwin-4.2.1/debug/andreas_beyer.py (original)
+++ ../../../bin.v2/libs/python/test/andreas_beyer.test/darwin-4.2.1/debug/andreas_beyer.py (refactored)
@@ -17,8 +17,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/andreas_beyer.test/darwin-4.2.1/debug/andreas_beyer.o
...skipped andreas_beyer_ext.so for lack of libboost_python.dylib...
...skipped andreas_beyer for lack of andreas_beyer_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/wrapper_held_type.test
common.mkdir ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug
copy wrapper_held_type.py
2to3 ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py
--- ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py (original)
+++ ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py (refactored)
@@ -26,9 +26,9 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py
--- ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py (original)
+++ ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.py (refactored)
@@ -4,16 +4,16 @@
'''
>>> from wrapper_held_type_ext import *
>>> d = data()
->>> print d.id()
+>>> print(d.id())
42
>>> do_nothing( d )
->>> print d.id()
+>>> print(d.id())
42
>>> d = create_data()
->>> print d.id()
+>>> print(d.id())
42
>>> do_nothing( d )
->>> print d.id()
+>>> print(d.id())
42
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/wrapper_held_type.test/darwin-4.2.1/debug/wrapper_held_type.o
...skipped wrapper_held_type_ext.so for lack of libboost_python.dylib...
...skipped wrapper_held_type for lack of wrapper_held_type_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/polymorphism2_auto_ptr.test
common.mkdir ../../../bin.v2/libs/python/test/polymorphism2_auto_ptr.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/polymorphism2_auto_ptr.test/darwin-4.2.1/debug
copy polymorphism2_auto_ptr.py
2to3 ../../../bin.v2/libs/python/test/polymorphism2_auto_ptr.test/darwin-4.2.1/debug/polymorphism2_auto_ptr.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/polymorphism2_auto_ptr.test/darwin-4.2.1/debug/polymorphism2_auto_ptr.o
...skipped polymorphism2_auto_ptr_ext.so for lack of libboost_python.dylib...
common.mkdir ../../../bin.v2/libs/python/test/polymorphism2.test
common.mkdir ../../../bin.v2/libs/python/test/polymorphism2.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/polymorphism2.test/darwin-4.2.1/debug
copy polymorphism2.py
2to3 ../../../bin.v2/libs/python/test/polymorphism2.test/darwin-4.2.1/debug/polymorphism2.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No changes to ../../../bin.v2/libs/python/test/polymorphism2.test/darwin-4.2.1/debug/polymorphism2.py
RefactoringTool: Files that need to be modified:
RefactoringTool: ../../../bin.v2/libs/python/test/polymorphism2.test/darwin-4.2.1/debug/polymorphism2.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
copy polymorphism2.py
2to3 ../../../bin.v2/libs/python/test/polymorphism2_auto_ptr.test/darwin-4.2.1/debug/polymorphism2.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No changes to ../../../bin.v2/libs/python/test/polymorphism2_auto_ptr.test/darwin-4.2.1/debug/polymorphism2.py
RefactoringTool: Files that need to be modified:
RefactoringTool: ../../../bin.v2/libs/python/test/polymorphism2_auto_ptr.test/darwin-4.2.1/debug/polymorphism2.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
...skipped polymorphism2_auto_ptr for lack of polymorphism2_auto_ptr_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/polymorphism.test
common.mkdir ../../../bin.v2/libs/python/test/polymorphism.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/polymorphism.test/darwin-4.2.1/debug
copy polymorphism.py
2to3 ../../../bin.v2/libs/python/test/polymorphism.test/darwin-4.2.1/debug/polymorphism.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No changes to ../../../bin.v2/libs/python/test/polymorphism.test/darwin-4.2.1/debug/polymorphism.py
RefactoringTool: Files that need to be modified:
RefactoringTool: ../../../bin.v2/libs/python/test/polymorphism.test/darwin-4.2.1/debug/polymorphism.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/polymorphism.test/darwin-4.2.1/debug/polymorphism.o
...skipped polymorphism_ext.so for lack of libboost_python.dylib...
...skipped polymorphism for lack of polymorphism_ext.so...
darwin.compile.c++ ../../../bin.v2/libs/python/test/polymorphism2.test/darwin-4.2.1/debug/polymorphism2.o
...skipped polymorphism2_ext.so for lack of libboost_python.dylib...
...skipped polymorphism2 for lack of polymorphism2_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/auto_ptr.test
common.mkdir ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug
copy auto_ptr.py
2to3 ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py
--- ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py (original)
+++ ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py (refactored)
@@ -93,8 +93,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py
--- ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py (original)
+++ ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.py (refactored)
@@ -28,7 +28,7 @@
>>> if not broken_auto_ptr:
... try: x.value()
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
>>> x = make()
>>> look(x)
@@ -51,7 +51,7 @@
>>> try: maybe_steal(y, 0)
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
>>> y.value()
42
@@ -62,24 +62,24 @@
>>> if not broken_auto_ptr:
... try: y.value()
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
->>> print look.__doc__.splitlines()[1]
+>>> print(look.__doc__.splitlines()[1])
look( (X)arg1) -> int :
->>> print steal.__doc__.splitlines()[1]
+>>> print(steal.__doc__.splitlines()[1])
steal( (X)arg1) -> int :
->>> print maybe_steal.__doc__.splitlines()[1]
+>>> print(maybe_steal.__doc__.splitlines()[1])
maybe_steal( (X)arg1, (bool)arg2) -> int :
->>> print make.__doc__.splitlines()[1]
+>>> print(make.__doc__.splitlines()[1])
make() -> X :
->>> print callback.__doc__.splitlines()[1]
+>>> print(callback.__doc__.splitlines()[1])
callback( (object)arg1) -> X :
->>> print extract.__doc__.splitlines()[1]
+>>> print(extract.__doc__.splitlines()[1])
extract( (object)arg1) -> X :
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/auto_ptr.test/darwin-4.2.1/debug/auto_ptr.o
...skipped auto_ptr_ext.so for lack of libboost_python.dylib...
...skipped auto_ptr for lack of auto_ptr_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/minimal.test
common.mkdir ../../../bin.v2/libs/python/test/minimal.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/minimal.test/darwin-4.2.1/debug
copy minimal.py
2to3 ../../../bin.v2/libs/python/test/minimal.test/darwin-4.2.1/debug/minimal.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/minimal.test/darwin-4.2.1/debug/minimal.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/minimal.test/darwin-4.2.1/debug/minimal.py
--- ../../../bin.v2/libs/python/test/minimal.test/darwin-4.2.1/debug/minimal.py (original)
+++ ../../../bin.v2/libs/python/test/minimal.test/darwin-4.2.1/debug/minimal.py (refactored)
@@ -1,7 +1,7 @@
# Copyright David Abrahams 2004. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-print "IMPORTING minimal_ext"
+print("IMPORTING minimal_ext")
import minimal_ext
-print "DONE IMPORTING minimal_ext"
+print("DONE IMPORTING minimal_ext")
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/minimal.test/darwin-4.2.1/debug/minimal.o
...skipped minimal_ext.so for lack of libboost_python.dylib...
...skipped minimal for lack of minimal_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/args.test
common.mkdir ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug
copy args.py
2to3 ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py
--- ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py (original)
+++ ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py (refactored)
@@ -135,10 +135,10 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
import args_ext
help(args_ext)
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py
--- ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py (original)
+++ ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.py (refactored)
@@ -26,7 +26,7 @@
>>> try: f(1, 2, 'hello', bar = 'baz')
... except TypeError: pass
-... else: print 'expected an exception: unknown keyword'
+... else: print('expected an exception: unknown keyword')
Exercise the functions using default stubs
@@ -72,7 +72,7 @@
>>> try: q.f(1, 2, 'hello', bar = 'baz')
... except TypeError: pass
-... else: print 'expected an exception: unknown keyword'
+... else: print('expected an exception: unknown keyword')
Exercise member functions using default stubs
@@ -95,10 +95,10 @@
>>> xfuncs = (X.inner0, X.inner1, X.inner2, X.inner3, X.inner4, X.inner5)
>>> for f in xfuncs:
-... print f(q,1).value(),
-... print f(q, n = 1).value(),
-... print f(q, n = 0).value(),
-... print f.__doc__.splitlines()[1:5]
+... print(f(q,1).value(), end=' ')
+... print(f(q, n = 1).value(), end=' ')
+... print(f(q, n = 0).value(), end=' ')
+... print(f.__doc__.splitlines()[1:5])
1 1 0 ['inner0( (X)self, (bool)n) -> Y :', ' docstring', '', ' C++ signature :']
1 1 0 ['inner1( (X)self, (bool)n) -> Y :', ' docstring', '', ' C++ signature :']
1 1 0 ['inner2( (X)self, (bool)n) -> Y :', ' docstring', '', ' C++ signature :']
darwin.compile.c++ ../../../bin.v2/libs/python/test/args.test/darwin-4.2.1/debug/args.o
...skipped args_ext.so for lack of libboost_python.dylib...
...skipped args for lack of args_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/raw_ctor.test
common.mkdir ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug
copy raw_ctor.py
2to3 ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py
--- ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py (original)
+++ ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py (refactored)
@@ -24,10 +24,10 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py
--- ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py (original)
+++ ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.py (refactored)
@@ -12,7 +12,7 @@
>>> f = Foo(1, 2, 'a', bar = 3, baz = 4)
>>> f.args
(1, 2, 'a')
->>> f.kw.items()
+>>> list(f.kw.items())
[('bar', 3), ('baz', 4)]
"""
def run(args = None):
darwin.compile.c++ ../../../bin.v2/libs/python/test/raw_ctor.test/darwin-4.2.1/debug/raw_ctor.o
...skipped raw_ctor_ext.so for lack of libboost_python.dylib...
...skipped raw_ctor for lack of raw_ctor_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/numpy.test
common.mkdir ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug
copy printer.py
2to3 ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/printer.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/printer.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/printer.py
--- ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/printer.py (original)
+++ ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/printer.py (refactored)
@@ -9,5 +9,5 @@
self.results.append(str(x))
def check(self, x):
if self.results[0] != str(x):
- print ' Expected:\n %s\n but the C++ interface gave:\n %s' % (x, self.results[0])
+ print(' Expected:\n %s\n but the C++ interface gave:\n %s' % (x, self.results[0]))
del self.results[0]
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numpy.o
...skipped numpy.so for lack of libboost_python.dylib...
copy numeric_tests.py
2to3 ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numeric_tests.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numeric_tests.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numeric_tests.py
--- ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numeric_tests.py (original)
+++ ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numeric_tests.py (refactored)
@@ -9,11 +9,11 @@
>>> try: take_array(3)
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
>>> take_array(x)
->>> print x
+>>> print(x)
[[1 2 3]
[4 0 6]
[7 8 9]]
copy numarray_tests.py
2to3 ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numarray_tests.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
copy numpy.py
2to3 ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numpy.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numpy.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numpy.py
--- ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numpy.py (original)
+++ ../../../bin.v2/libs/python/test/numpy.test/darwin-4.2.1/debug/numpy.py (refactored)
@@ -51,20 +51,20 @@
#
# run all the tests with default module search
- print 'testing default extension module:', \
- numpy_ext.get_module_name() or '[numeric support not installed]'
+ print('testing default extension module:', \
+ numpy_ext.get_module_name() or '[numeric support not installed]')
failures += _count_failures()
# test against Numeric if installed
if has_numeric:
- print 'testing Numeric module explicitly'
+ print('testing Numeric module explicitly')
numpy_ext.set_module_and_type('Numeric', 'ArrayType')
failures += _count_failures()
if has_numarray:
- print 'testing numarray module explicitly'
+ print('testing numarray module explicitly')
numpy_ext.set_module_and_type('numarray', 'NDArray')
# Add the _numarray_tests to the list of things to test in
# this case.
@@ -72,16 +72,16 @@
# see that we can go back to the default
numpy_ext.set_module_and_type('', '')
- print 'testing default module again:', \
- numpy_ext.get_module_name() or '[numeric support not installed]'
+ print('testing default module again:', \
+ numpy_ext.get_module_name() or '[numeric support not installed]')
failures += _count_failures()
return failures
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = _run()
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
...skipped numpy for lack of numpy.so...
common.mkdir ../../../bin.v2/libs/python/test/enum.test
common.mkdir ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug
copy enum.py
2to3 ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py
--- ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py (original)
+++ ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py (refactored)
@@ -78,8 +78,8 @@
return doctest.testmod(self)
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py
--- ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py (original)
+++ ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.py (refactored)
@@ -38,7 +38,7 @@
>>> try: identity(1)
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
>>> c = colorized()
>>> c.x
darwin.compile.c++ ../../../bin.v2/libs/python/test/enum.test/darwin-4.2.1/debug/enum.o
...skipped enum_ext.so for lack of libboost_python.dylib...
...skipped enum for lack of enum_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/exception_translator.test
common.mkdir ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug
copy exception_translator.py
2to3 ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py
--- ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py (original)
+++ ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py (refactored)
@@ -20,8 +20,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py
--- ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py (original)
+++ ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.py (refactored)
@@ -5,10 +5,10 @@
>>> from exception_translator_ext import *
>>> try:
... throw_error();
-... except RuntimeError, x:
-... print x
+... except RuntimeError as x:
+... print(x)
... else:
-... print 'Expected a RuntimeError!'
+... print('Expected a RuntimeError!')
!!!error!!!
'''
def run(args = None):
darwin.compile.c++ ../../../bin.v2/libs/python/test/exception_translator.test/darwin-4.2.1/debug/exception_translator.o
...skipped exception_translator_ext.so for lack of libboost_python.dylib...
...skipped exception_translator for lack of exception_translator_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/pearu1.test
common.mkdir ../../../bin.v2/libs/python/test/pearu1.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/pearu1.test/darwin-4.2.1/debug
copy test_cltree.py
2to3 ../../../bin.v2/libs/python/test/pearu1.test/darwin-4.2.1/debug/test_cltree.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pearu1.test/darwin-4.2.1/debug/test_cltree.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pearu1.test/darwin-4.2.1/debug/test_cltree.py
--- ../../../bin.v2/libs/python/test/pearu1.test/darwin-4.2.1/debug/test_cltree.py (original)
+++ ../../../bin.v2/libs/python/test/pearu1.test/darwin-4.2.1/debug/test_cltree.py (refactored)
@@ -30,14 +30,14 @@
assert not isinstance(v,constant)
assert isinstance(v,variable)
-print 'b=',b
+print('b=',b)
assert repr(b)=='cltree.basic()'
-print 's=',s
+print('s=',s)
assert repr(s)!='cltree.wrapped_symbol()' # because not isinstance(s,basic)
-print 'c=',c
+print('c=',c)
assert repr(c)=='cltree.constant()'
-print 'v=',v
+print('v=',v)
assert repr(v)=='cltree.wrapped_variable()'
-print 'ok'
+print('ok')
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/pearu1.test/darwin-4.2.1/debug/cltree.o
...skipped cltree.so for lack of libboost_python.dylib...
...skipped pearu1 for lack of cltree.so...
common.mkdir ../../../bin.v2/libs/python/test/try.test
common.mkdir ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug
copy newtest.py
2to3 ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py
--- ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py (original)
+++ ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py (refactored)
@@ -199,8 +199,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py
--- ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py (original)
+++ ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/newtest.py (refactored)
@@ -12,12 +12,12 @@
>>> def check_unregistered(f, msgprefix):
... try:
... f(1)
-... except TypeError, x:
+... except TypeError as x:
... if not str(x).startswith(msgprefix):
-... print str(x)
+... print(str(x))
... else:
-... print 'expected a TypeError'
-...
+... print('expected a TypeError')
+...
>>> check_unregistered(make_unregistered, 'No to_python (by-value) converter found for C++ type')
>>> check_unregistered(make_unregistered2, 'No Python class registered for C++ class')
@@ -42,7 +42,7 @@
>>> try:
... unwrap_int_ref(7)
... except: pass
-... else: print 'no exception'
+... else: print('no exception')
>>> unwrap_int_const_ref(9)
9
@@ -105,7 +105,7 @@
>>> try: A.__dict__['name'](None)
... except TypeError: pass
-... else: print 'expected an exception!'
+... else: print('expected an exception!')
>>> a = A()
@@ -120,17 +120,17 @@
>>> try:
... take_b(a)
... except: pass
-... else: print 'no exception'
+... else: print('no exception')
>>> try:
... take_c(a)
... except: pass
-... else: print 'no exception'
+... else: print('no exception')
>>> try:
... take_d(a)
... except: pass
-... else: print 'no exception'
+... else: print('no exception')
------
>>> take_a(b).name()
@@ -142,12 +142,12 @@
>>> try:
... take_c(b)
... except: pass
-... else: print 'no exception'
+... else: print('no exception')
>>> try:
... take_d(b)
... except: pass
-... else: print 'no exception'
+... else: print('no exception')
-------
>>> take_a(c).name()
@@ -156,7 +156,7 @@
>>> try:
... take_b(c)
... except: pass
-... else: print 'no exception'
+... else: print('no exception')
>>> take_c(c).name()
'C'
@@ -164,7 +164,7 @@
>>> try:
... take_d(c)
... except: pass
-... else: print 'no exception'
+... else: print('no exception')
-------
>>> take_a(d).name()
@@ -183,7 +183,7 @@
>>> dd = take_d(d_as_a)
>>> dd.name()
'D'
->>> print g.__doc__.splitlines()[1]
+>>> print(g.__doc__.splitlines()[1])
g( (Simple)arg1) -> Simple :
"""
darwin.compile.c++ ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/m1.o
...skipped m1.so for lack of libboost_python.dylib...
darwin.compile.c++ ../../../bin.v2/libs/python/test/try.test/darwin-4.2.1/debug/m2.o
...skipped m2.so for lack of libboost_python.dylib...
...skipped try for lack of m1.so...
common.mkdir ../../../bin.v2/libs/python/test/const_argument.test
common.mkdir ../../../bin.v2/libs/python/test/const_argument.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/const_argument.test/darwin-4.2.1/debug
copy const_argument.py
2to3 ../../../bin.v2/libs/python/test/const_argument.test/darwin-4.2.1/debug/const_argument.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/const_argument.test/darwin-4.2.1/debug/const_argument.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/const_argument.test/darwin-4.2.1/debug/const_argument.py
--- ../../../bin.v2/libs/python/test/const_argument.test/darwin-4.2.1/debug/const_argument.py (original)
+++ ../../../bin.v2/libs/python/test/const_argument.test/darwin-4.2.1/debug/const_argument.py (refactored)
@@ -16,8 +16,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/const_argument.test/darwin-4.2.1/debug/const_argument.o
...skipped const_argument_ext.so for lack of libboost_python.dylib...
...skipped const_argument for lack of const_argument_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/keywords.test
common.mkdir ../../../bin.v2/libs/python/test/keywords.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/keywords.test/darwin-4.2.1/debug
copy keywords_test.py
2to3 ../../../bin.v2/libs/python/test/keywords.test/darwin-4.2.1/debug/keywords_test.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/keywords.test/darwin-4.2.1/debug/keywords_test.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/keywords.test/darwin-4.2.1/debug/keywords_test.py
--- ../../../bin.v2/libs/python/test/keywords.test/darwin-4.2.1/debug/keywords_test.py (original)
+++ ../../../bin.v2/libs/python/test/keywords.test/darwin-4.2.1/debug/keywords_test.py (refactored)
@@ -98,9 +98,9 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/keywords.test/darwin-4.2.1/debug/keywords.o
...skipped keywords.so for lack of libboost_python.dylib...
...skipped keywords for lack of keywords.so...
common.mkdir ../../../bin.v2/libs/python/test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/darwin-4.2.1/debug
darwin.compile.c++ ../../../bin.v2/libs/python/test/darwin-4.2.1/debug/test_builtin_converters.o
...skipped builtin_converters_ext.so for lack of libboost_python.dylib...
...on 200th target...
common.mkdir ../../../bin.v2/libs/python/test/builtin_converters.test
common.mkdir ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug
copy test_builtin_converters.py
2to3 ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py
--- ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py (original)
+++ ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py (refactored)
@@ -286,17 +286,17 @@
import builtin_converters_ext
if 'rewrap_value_long_long' in dir(builtin_converters_ext):
- print 'LONG_LONG supported, testing...'
+ print('LONG_LONG supported, testing...')
else:
- print 'LONG_LONG not supported, skipping those tests...'
+ print('LONG_LONG not supported, skipping those tests...')
if args is not None:
sys.argv = args
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py
--- ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py (original)
+++ ../../../bin.v2/libs/python/test/builtin_converters.test/darwin-4.2.1/debug/test_builtin_converters.py (refactored)
@@ -10,25 +10,25 @@
... return [[-base, -1, 1, base - 1], [-base - 1, base]]
>>> def _unsigned_values(s):
... base = 2 ** (8 * s)
-... return [[1, base - 1], [-1L, -1, base]]
+... return [[1, base - 1], [-1, -1, base]]
# Wrappers to simplify tests
>>> def should_pass(method, values):
-... result = map(method, values[0])
+... result = list(map(method, values[0]))
... if result != values[0]:
-... print "Got %s but expected %s" % (result, values[0])
+... print("Got %s but expected %s" % (result, values[0]))
>>> def test_overflow(method, values):
... for v in values[1]:
... try: method(v)
... except OverflowError: pass
-... else: print "OverflowError expected"
+... else: print("OverflowError expected")
# Synthesize idendity functions in case long long not supported
>>> if not 'rewrap_value_long_long' in dir():
-... def rewrap_value_long_long(x): return long(x)
-... def rewrap_value_unsigned_long_long(x): return long(x)
-... def rewrap_const_reference_long_long(x): return long(x)
-... def rewrap_const_reference_unsigned_long_long(x): return long(x)
+... def rewrap_value_long_long(x): return int(x)
+... def rewrap_value_unsigned_long_long(x): return int(x)
+... def rewrap_const_reference_long_long(x): return int(x)
+... def rewrap_const_reference_unsigned_long_long(x): return int(x)
>>> if not 'long_long_size' in dir():
... def long_long_size(): return long_size()
@@ -74,7 +74,7 @@
test unsigned long values which don't fit in a signed long.
strip any 'L' characters in case the platform has > 32 bit longs
->>> hex(rewrap_value_unsigned_long(0x80000001L)).replace('L','')
+>>> hex(rewrap_value_unsigned_long(0x80000001)).replace('L','')
'0x80000001'
>>> rewrap_value_long_long(42) == 42
@@ -113,7 +113,7 @@
>>> for v in _unsigned_values(long_long_size())[1]:
... try: rewrap_value_unsigned_long_long(v)
... except (OverflowError, TypeError): pass
-... else: print "OverflowError or TypeError expected"
+... else: print("OverflowError or TypeError expected")
>>> assert abs(rewrap_value_float(4.2) - 4.2) < .000001
>>> rewrap_value_double(4.2) - 4.2
@@ -130,12 +130,12 @@
>>> rewrap_value_string('yo, wassup?')
'yo, wassup?'
->>> print rewrap_value_wstring(u'yo, wassup?')
+>>> print(rewrap_value_wstring('yo, wassup?'))
yo, wassup?
test that overloading on unicode works:
->>> print rewrap_value_string(u'yo, wassup?')
+>>> print(rewrap_value_string('yo, wassup?'))
yo, wassup?
wrap strings with embedded nulls:
@@ -162,7 +162,7 @@
>>> try: rewrap_const_reference_bool('yes')
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
>>> rewrap_const_reference_char('x')
'x'
@@ -225,26 +225,26 @@
>>> try: rewrap_const_reference_string(None)
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
Now check implicit conversions between floating/integer types
>>> rewrap_const_reference_float(42)
42.0
->>> rewrap_const_reference_float(42L)
+>>> rewrap_const_reference_float(42)
42.0
>>> try: rewrap_const_reference_int(42.0)
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
>>> rewrap_value_float(42)
42.0
>>> try: rewrap_value_int(42.0)
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
Check that classic classes also work
@@ -260,19 +260,19 @@
>>> try: rewrap_const_reference_float(FortyTwo())
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
>>> try: rewrap_value_int(FortyTwo())
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
>>> try: rewrap_const_reference_string(FortyTwo())
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
>>> try: rewrap_value_complex_double(FortyTwo())
... except TypeError: pass
-... else: print 'expected a TypeError exception'
+... else: print('expected a TypeError exception')
# show that arbitrary handle instantiations can be returned
>>> assert get_type(1) is type(1)
...skipped builtin_converters for lack of builtin_converters_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/test_pointer_adoption.test
common.mkdir ../../../bin.v2/libs/python/test/test_pointer_adoption.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/test_pointer_adoption.test/darwin-4.2.1/debug
copy test_pointer_adoption.py
2to3 ../../../bin.v2/libs/python/test/test_pointer_adoption.test/darwin-4.2.1/debug/test_pointer_adoption.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/test_pointer_adoption.test/darwin-4.2.1/debug/test_pointer_adoption.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/test_pointer_adoption.test/darwin-4.2.1/debug/test_pointer_adoption.py
--- ../../../bin.v2/libs/python/test/test_pointer_adoption.test/darwin-4.2.1/debug/test_pointer_adoption.py (original)
+++ ../../../bin.v2/libs/python/test/test_pointer_adoption.test/darwin-4.2.1/debug/test_pointer_adoption.py (refactored)
@@ -86,8 +86,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/test_pointer_adoption.test/darwin-4.2.1/debug/test_pointer_adoption.o
...skipped test_pointer_adoption_ext.so for lack of libboost_python.dylib...
...skipped test_pointer_adoption for lack of test_pointer_adoption_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/operators.test
common.mkdir ../../../bin.v2/libs/python/test/operators.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/operators.test/darwin-4.2.1/debug
copy operators.py
2to3 ../../../bin.v2/libs/python/test/operators.test/darwin-4.2.1/debug/operators.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/operators.test/darwin-4.2.1/debug/operators.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/operators.test/darwin-4.2.1/debug/operators.py
--- ../../../bin.v2/libs/python/test/operators.test/darwin-4.2.1/debug/operators.py (original)
+++ ../../../bin.v2/libs/python/test/operators.test/darwin-4.2.1/debug/operators.py (refactored)
@@ -95,8 +95,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/operators.test/darwin-4.2.1/debug/operators.o
...skipped operators_ext.so for lack of libboost_python.dylib...
...skipped operators for lack of operators_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/operators_wrapper.test
common.mkdir ../../../bin.v2/libs/python/test/operators_wrapper.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/operators_wrapper.test/darwin-4.2.1/debug
copy operators_wrapper.py
2to3 ../../../bin.v2/libs/python/test/operators_wrapper.test/darwin-4.2.1/debug/operators_wrapper.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/operators_wrapper.test/darwin-4.2.1/debug/operators_wrapper.o
...skipped operators_wrapper_ext.so for lack of libboost_python.dylib...
...skipped operators_wrapper for lack of operators_wrapper_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/callbacks.test
common.mkdir ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug
copy callbacks.py
2to3 ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py
--- ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py (original)
+++ ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py (refactored)
@@ -140,8 +140,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py
--- ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py (original)
+++ ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.py (refactored)
@@ -19,11 +19,11 @@
>>> try: apply_to_string_literal(identity)
... except ReferenceError: pass # expected
-... else: print 'expected an exception!'
+... else: print('expected an exception!')
>>> try: apply_X_ref_handle(lambda ignored:X(42), None)
... except ReferenceError: pass # expected
-... else: print 'expected an exception!'
+... else: print('expected an exception!')
>>> x = X(42)
>>> x.y = X(7)
@@ -104,15 +104,15 @@
...
>>> try: apply_X_ref_handle(new_x, 1)
... except ReferenceError: pass
-... else: print 'no error'
+... else: print('no error')
>>> try: apply_X_ptr_handle_cref(new_x, 1)
... except ReferenceError: pass
-... else: print 'no error'
+... else: print('no error')
>>> try: apply_cstring_cstring(identity, 'hello')
... except ReferenceError: pass
-... else: print 'no error'
+... else: print('no error')
>>> apply_char_char(identity, 'x')
'x'
darwin.compile.c++ ../../../bin.v2/libs/python/test/callbacks.test/darwin-4.2.1/debug/callbacks.o
...skipped callbacks_ext.so for lack of libboost_python.dylib...
...skipped callbacks for lack of callbacks_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/defaults.test
common.mkdir ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug
copy defaults.py
2to3 ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py
--- ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py (original)
+++ ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py (refactored)
@@ -133,8 +133,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py
--- ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py (original)
+++ ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.py (refactored)
@@ -106,19 +106,19 @@
... doc = obj.__doc__.splitlines()
... return "\\n".join(["|"+doc[i] for i in args])
->>> print selected_doc(X.__init__, 1, 2, 4, 7, 9)
+>>> print(selected_doc(X.__init__, 1, 2, 4, 7, 9))
|__init__( (object)self [, (int)a [, (str)b [, (str)c [, (float)d]]]]) -> None :
| doc of init
| C++ signature :
|__init__( (object)self, (str)s, (bool)b) -> None :
| C++ signature :
->>> print selected_doc(Y.__init__, 1, 2, 4)
+>>> print(selected_doc(Y.__init__, 1, 2, 4))
|__init__( (object)arg1) -> None :
| doc of Y init
| C++ signature :
->>> print selected_doc(X.bar2, 1, 2, 4)
+>>> print(selected_doc(X.bar2, 1, 2, 4))
|bar2( (X)arg1 [, (int)arg2 [, (str)arg3 [, (str)arg4 [, (float)arg5]]]]) -> Y :
| doc of X::bar2
| C++ signature :
darwin.compile.c++ ../../../bin.v2/libs/python/test/defaults.test/darwin-4.2.1/debug/defaults.o
...skipped defaults_ext.so for lack of libboost_python.dylib...
...skipped defaults for lack of defaults_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/object.test
common.mkdir ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug
copy object.py
2to3 ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py
--- ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py (original)
+++ ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py (refactored)
@@ -172,8 +172,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py
--- ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py (original)
+++ ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.py (refactored)
@@ -8,7 +8,7 @@
>>> def print1(x):
-... print x
+... print(x)
>>> call_object_3(print1)
3
>>> message()
@@ -33,10 +33,10 @@
>>> try: obj_getattr(x, 'foo')
... except AttributeError: pass
-... else: print 'expected an exception'
+... else: print('expected an exception')
>>> try: obj_objgetattr(x, 'objfoo')
... except AttributeError: pass
-... else: print 'expected an exception'
+... else: print('expected an exception')
>>> obj_setattr(x, 'foo', 1)
>>> x.foo
@@ -44,7 +44,7 @@
>>> obj_objsetattr(x, 'objfoo', 1)
>>> try:obj_objsetattr(x, 1)
... except TypeError: pass
-... else: print 'expected an exception'
+... else: print('expected an exception')
>>> x.objfoo
1
>>> obj_getattr(x, 'foo')
@@ -53,7 +53,7 @@
1
>>> try:obj_objgetattr(x, 1)
... except TypeError: pass
-... else: print 'expected an exception'
+... else: print('expected an exception')
>>> obj_const_getattr(x, 'foo')
1
>>> obj_const_objgetattr(x, 'objfoo')
@@ -92,10 +92,10 @@
>>> obj_objdelattr(x, 'objfoo')
>>> try:obj_delattr(x, 'foo')
... except AttributeError: pass
-... else: print 'expected an exception'
+... else: print('expected an exception')
>>> try:obj_objdelattr(x, 'objfoo')
... except AttributeError: pass
-... else: print 'expected an exception'
+... else: print('expected an exception')
Items
@@ -135,7 +135,7 @@
Operators
>>> def print_args(*args, **kwds):
-... print args, kwds
+... print(args, kwds)
>>> test_call(print_args, (0, 1, 2, 3), {'a':'A'})
(0, 1, 2, 3) {'a': 'A'}
@@ -144,7 +144,7 @@
>>> class X: pass
...
->>> assert check_inplace(range(3), X())
+>>> assert check_inplace(list(range(3)), X())
Now make sure that object is actually managing reference counts
@@ -153,8 +153,8 @@
>>> class Z: pass
...
>>> z = Z()
->>> def death(r): print 'death'
-...
+>>> def death(r): print('death')
+...
>>> r = weakref.ref(z, death)
>>> z.foo = 1
>>> obj_getattr(z, 'foo')
darwin.compile.c++ ../../../bin.v2/libs/python/test/object.test/darwin-4.2.1/debug/object.o
...skipped object_ext.so for lack of libboost_python.dylib...
...skipped object for lack of object_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/list.test
common.mkdir ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug
copy list.py
2to3 ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py
--- ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py (original)
+++ ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py (refactored)
@@ -111,8 +111,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py
--- ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py (original)
+++ ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.py (refactored)
@@ -25,7 +25,7 @@
>>> try: result = apply_object_list(identity, 5)
... except TypeError: pass
-... else: print 'expected an exception, got', result, 'instead'
+... else: print('expected an exception, got', result, 'instead')
>>> assert apply_list_list(identity, letters) is letters
@@ -33,7 +33,7 @@
>>> try: result = apply_list_list(len, letters)
... except TypeError: pass
-... else: print 'expected an exception, got', result, 'instead'
+... else: print('expected an exception, got', result, 'instead')
>>> append_object(letters, '.')
>>> letters
@@ -43,7 +43,7 @@
>>> try: append_list(letters, (1,2))
... except TypeError: pass
-... else: print 'expected an exception'
+... else: print('expected an exception')
>>> append_list(letters, [1,2])
>>> letters
@@ -68,9 +68,9 @@
2
>>> def printer(*args):
-... for x in args: print x,
-... print
-...
+... for x in args: print(x, end=' ')
+... print()
+...
>>> y = X(42)
>>> exercise(letters, y, printer) #doctest: +NORMALIZE_WHITESPACE
darwin.compile.c++ ../../../bin.v2/libs/python/test/list.test/darwin-4.2.1/debug/list.o
...skipped list_ext.so for lack of libboost_python.dylib...
...skipped list for lack of list_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/long.test
common.mkdir ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug
copy long.py
2to3 ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py
--- ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py (original)
+++ ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py (refactored)
@@ -26,8 +26,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py
--- ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py (original)
+++ ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.py (refactored)
@@ -3,18 +3,18 @@
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
'''
>>> from long_ext import *
->>> print new_long()
+>>> print(new_long())
0
->>> print longify(42)
+>>> print(longify(42))
42
->>> print longify_string('300')
+>>> print(longify_string('300'))
300
->>> is_long(20L)
+>>> is_long(20)
'yes'
>>> is_long('20')
0
->>> x = Y(4294967295L)
+>>> x = Y(4294967295)
'''
def run(args = None):
darwin.compile.c++ ../../../bin.v2/libs/python/test/long.test/darwin-4.2.1/debug/long.o
...skipped long_ext.so for lack of libboost_python.dylib...
...skipped long for lack of long_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/dict.test
common.mkdir ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug
copy dict.py
2to3 ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py
--- ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py (original)
+++ ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py (refactored)
@@ -38,8 +38,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py
--- ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py (original)
+++ ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.py (refactored)
@@ -4,21 +4,21 @@
"""
>>> from dict_ext import *
>>> def printer(*args):
-... for x in args: print x,
-... print
-...
->>> print new_dict()
+... for x in args: print(x, end=' ')
+... print()
+...
+>>> print(new_dict())
{}
->>> print data_dict()
+>>> print(data_dict())
{1: {'key2': 'value2'}, 'key1': 'value1'}
>>> tmp = data_dict()
->>> print dict_keys(tmp)
+>>> print(dict_keys(tmp))
[1, 'key1']
->>> print dict_values(tmp)
+>>> print(dict_values(tmp))
[{'key2': 'value2'}, 'value1']
->>> print dict_items(tmp)
+>>> print(dict_items(tmp))
[(1, {'key2': 'value2'}), ('key1', 'value1')]
->>> print dict_from_sequence([(1,1),(2,2),(3,3)])
+>>> print(dict_from_sequence([(1,1),(2,2),(3,3)]))
{1: 1, 2: 2, 3: 3}
>>> test_templates(printer) #doctest: +NORMALIZE_WHITESPACE
a test string
darwin.compile.c++ ../../../bin.v2/libs/python/test/dict.test/darwin-4.2.1/debug/dict.o
...skipped dict_ext.so for lack of libboost_python.dylib...
...skipped dict for lack of dict_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/tuple.test
common.mkdir ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug
copy tuple.py
2to3 ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py
--- ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py (original)
+++ ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py (refactored)
@@ -30,8 +30,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py
--- ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py (original)
+++ ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.py (refactored)
@@ -4,10 +4,10 @@
"""
>>> from tuple_ext import *
>>> def printer(*args):
-... for x in args: print x,
-... print
-...
->>> print convert_to_tuple("this is a test string")
+... for x in args: print(x, end=' ')
+... print()
+...
+>>> print(convert_to_tuple("this is a test string"))
('t', 'h', 'i', 's', ' ', 'i', 's', ' ', 'a', ' ', 't', 'e', 's', 't', ' ', 's', 't', 'r', 'i', 'n', 'g')
>>> t1 = convert_to_tuple("this is")
>>> t2 = (1,2,3,4)
darwin.compile.c++ ../../../bin.v2/libs/python/test/tuple.test/darwin-4.2.1/debug/tuple.o
...skipped tuple_ext.so for lack of libboost_python.dylib...
...skipped tuple for lack of tuple_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/str.test
common.mkdir ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug
copy str.py
2to3 ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py
--- ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py (original)
+++ ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py (refactored)
@@ -46,8 +46,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py
--- ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py (original)
+++ ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.py (refactored)
@@ -4,9 +4,9 @@
"""
>>> from str_ext import *
>>> def printer(*args):
-... for x in args: print x,
-... print
-...
+... for x in args: print(x, end=' ')
+... print()
+...
>>> work_with_string(printer) #doctest: +NORMALIZE_WHITESPACE
['this', 'is', 'a', 'demo', 'string']
['this', 'is', 'a', 'demo string']
darwin.compile.c++ ../../../bin.v2/libs/python/test/str.test/darwin-4.2.1/debug/str.o
...skipped str_ext.so for lack of libboost_python.dylib...
...skipped str for lack of str_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/slice.test
common.mkdir ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug
copy slice.py
2to3 ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py
--- ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py (original)
+++ ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py (refactored)
@@ -65,8 +65,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py
--- ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py (original)
+++ ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.py (refactored)
@@ -7,26 +7,26 @@
1
>>> try:
... accept_slice(list((1,2)))
-... print "test failed"
+... print("test failed")
... except:
-... print "test passed"
-...
+... print("test passed")
+...
test passed
>>> try:
... from Numeric import array
... except:
-... print 1
+... print(1)
... else:
... check_numeric_array_rich_slice('Numeric', 'ArrayType', lambda x:x)
-...
+...
1
>>> try:
... from numarray import array, all
... except:
-... print 1
+... print(1)
... else:
... check_numeric_array_rich_slice('numarray', 'NDArray', all)
-...
+...
1
>>> import sys
>>> if sys.version_info[0] == 2 and sys.version_info[1] >= 3:
@@ -34,8 +34,8 @@
... elif sys.version_info[0] > 2:
... check_string_rich_slice()
... else:
-... print 1
-...
+... print(1)
+...
1
>>> check_slice_get_indicies( slice(None))
0
darwin.compile.c++ ../../../bin.v2/libs/python/test/slice.test/darwin-4.2.1/debug/slice.o
...skipped slice_ext.so for lack of libboost_python.dylib...
...skipped slice for lack of slice_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/virtual_functions.test
common.mkdir ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug
copy virtual_functions.py
2to3 ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py
--- ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py (original)
+++ ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py (refactored)
@@ -103,8 +103,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py
--- ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py (original)
+++ ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.py (refactored)
@@ -52,12 +52,12 @@
# Call f indirectly from C++
>>> try: a2.call_f(y1)
... except AttributeError: pass
-... else: print 'no exception'
+... else: print('no exception')
# Call f directly from Python
>>> try: a2.call_f(y2)
... except AttributeError: pass
-... else: print 'no exception'
+... else: print('no exception')
############# Concrete Tests ############
darwin.compile.c++ ../../../bin.v2/libs/python/test/virtual_functions.test/darwin-4.2.1/debug/virtual_functions.o
...skipped virtual_functions_ext.so for lack of libboost_python.dylib...
...skipped virtual_functions for lack of virtual_functions_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/back_reference.test
common.mkdir ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug
copy back_reference.py
2to3 ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py
--- ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py (original)
+++ ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py (refactored)
@@ -30,8 +30,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py
--- ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py (original)
+++ ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.py (refactored)
@@ -17,7 +17,7 @@
>>> y_equality(y, y)
1
->>> print y_identity.__doc__.splitlines()[1]
+>>> print(y_identity.__doc__.splitlines()[1])
y_identity( (Y)arg1) -> object :
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/back_reference.test/darwin-4.2.1/debug/back_reference.o
...skipped back_reference_ext.so for lack of libboost_python.dylib...
...skipped back_reference for lack of back_reference_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/implicit.test
common.mkdir ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug
copy implicit.py
2to3 ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py
--- ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py (original)
+++ ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py (refactored)
@@ -37,8 +37,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py
--- ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py (original)
+++ ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.py (refactored)
@@ -12,18 +12,18 @@
42
>>> try: make_x('fool')
... except TypeError: pass
-... else: print 'no error'
+... else: print('no error')
->>> print x_value.__doc__.splitlines()[1]
+>>> print(x_value.__doc__.splitlines()[1])
x_value( (X)arg1) -> int :
->>> print make_x.__doc__.splitlines()[1]
+>>> print(make_x.__doc__.splitlines()[1])
make_x( (object)arg1) -> X :
->>> print X.value.__doc__.splitlines()[1]
+>>> print(X.value.__doc__.splitlines()[1])
value( (X)arg1) -> int :
->>> print X.set.__doc__.splitlines()[1]
+>>> print(X.set.__doc__.splitlines()[1])
set( (X)arg1, (object)arg2) -> None :
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/implicit.test/darwin-4.2.1/debug/implicit.o
...skipped implicit_ext.so for lack of libboost_python.dylib...
...skipped implicit for lack of implicit_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/data_members.test
common.mkdir ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug
copy data_members.py
2to3 ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py
--- ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py (original)
+++ ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py (refactored)
@@ -208,8 +208,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py
--- ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py (original)
+++ ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.py (refactored)
@@ -163,7 +163,7 @@
42
>>> try: x.x = 77
... except AttributeError: pass
-... else: print 'no error'
+... else: print('no error')
>>> x.fair_value
42.0
darwin.compile.c++ ../../../bin.v2/libs/python/test/data_members.test/darwin-4.2.1/debug/data_members.o
...skipped data_members_ext.so for lack of libboost_python.dylib...
...skipped data_members for lack of data_members_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/ben_scott1.test
common.mkdir ../../../bin.v2/libs/python/test/ben_scott1.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/ben_scott1.test/darwin-4.2.1/debug
copy ben_scott1.py
2to3 ../../../bin.v2/libs/python/test/ben_scott1.test/darwin-4.2.1/debug/ben_scott1.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/ben_scott1.test/darwin-4.2.1/debug/ben_scott1.o
...skipped ben_scott1_ext.so for lack of libboost_python.dylib...
...skipped ben_scott1 for lack of ben_scott1_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/bienstman1.test
common.mkdir ../../../bin.v2/libs/python/test/bienstman1.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/bienstman1.test/darwin-4.2.1/debug
copy bienstman1.py
2to3 ../../../bin.v2/libs/python/test/bienstman1.test/darwin-4.2.1/debug/bienstman1.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/bienstman1.test/darwin-4.2.1/debug/bienstman1.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/bienstman1.test/darwin-4.2.1/debug/bienstman1.py
--- ../../../bin.v2/libs/python/test/bienstman1.test/darwin-4.2.1/debug/bienstman1.py (original)
+++ ../../../bin.v2/libs/python/test/bienstman1.test/darwin-4.2.1/debug/bienstman1.py (refactored)
@@ -16,8 +16,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/bienstman1.test/darwin-4.2.1/debug/bienstman1.o
...skipped bienstman1_ext.so for lack of libboost_python.dylib...
...skipped bienstman1 for lack of bienstman1_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/bienstman2.test
common.mkdir ../../../bin.v2/libs/python/test/bienstman2.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/bienstman2.test/darwin-4.2.1/debug
copy bienstman2.py
2to3 ../../../bin.v2/libs/python/test/bienstman2.test/darwin-4.2.1/debug/bienstman2.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/bienstman2.test/darwin-4.2.1/debug/bienstman2.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/bienstman2.test/darwin-4.2.1/debug/bienstman2.py
--- ../../../bin.v2/libs/python/test/bienstman2.test/darwin-4.2.1/debug/bienstman2.py (original)
+++ ../../../bin.v2/libs/python/test/bienstman2.test/darwin-4.2.1/debug/bienstman2.py (refactored)
@@ -13,8 +13,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/bienstman2.test/darwin-4.2.1/debug/bienstman2.o
...skipped bienstman2_ext.so for lack of libboost_python.dylib...
...skipped bienstman2 for lack of bienstman2_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/bienstman3.test
...on 300th target...
common.mkdir ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug
copy bienstman3.py
2to3 ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py
--- ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py (original)
+++ ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py (refactored)
@@ -23,8 +23,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py
--- ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py (original)
+++ ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.py (refactored)
@@ -6,11 +6,11 @@
>>> try:
... V()
-... except RuntimeError, x:
-... print x
+... except RuntimeError as x:
+... print(x)
... else:
-... print 'expected an exception'
-...
+... print('expected an exception')
+...
This class cannot be instantiated from Python
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/bienstman3.test/darwin-4.2.1/debug/bienstman3.o
...skipped bienstman3_ext.so for lack of libboost_python.dylib...
...skipped bienstman3 for lack of bienstman3_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/multi_arg_constructor.test
common.mkdir ../../../bin.v2/libs/python/test/multi_arg_constructor.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/multi_arg_constructor.test/darwin-4.2.1/debug
copy multi_arg_constructor.py
2to3 ../../../bin.v2/libs/python/test/multi_arg_constructor.test/darwin-4.2.1/debug/multi_arg_constructor.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/multi_arg_constructor.test/darwin-4.2.1/debug/multi_arg_constructor.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/multi_arg_constructor.test/darwin-4.2.1/debug/multi_arg_constructor.py
--- ../../../bin.v2/libs/python/test/multi_arg_constructor.test/darwin-4.2.1/debug/multi_arg_constructor.py (original)
+++ ../../../bin.v2/libs/python/test/multi_arg_constructor.test/darwin-4.2.1/debug/multi_arg_constructor.py (refactored)
@@ -14,8 +14,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/multi_arg_constructor.test/darwin-4.2.1/debug/multi_arg_constructor.o
...skipped multi_arg_constructor_ext.so for lack of libboost_python.dylib...
...skipped multi_arg_constructor for lack of multi_arg_constructor_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/iterator.test
common.mkdir ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug
copy iterator.py
2to3 ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py
--- ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py (original)
+++ ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py (refactored)
@@ -70,8 +70,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py
--- ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py (original)
+++ ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.py (refactored)
@@ -11,13 +11,13 @@
>>> x.push_back(3)
>>> x.push_back(5)
>>> for y in x:
-... print y
+... print(y)
1
3
5
->>> z = range(x)
+>>> z = list(range(x))
>>> for y in z:
-... print y
+... print(y)
1
3
5
@@ -27,14 +27,14 @@
>>> z2 = range2(x)
>>> for y in z2:
-... print y
+... print(y)
2
6
10
>>> l2 = two_lists()
>>> for y in l2.primes:
-... print y
+... print(y)
2
3
5
@@ -42,7 +42,7 @@
11
13
>>> for y in l2.evens:
-... print y
+... print(y)
2
4
6
@@ -55,9 +55,9 @@
>>> ll.push_back(x)
>>> for a in ll: #doctest: +NORMALIZE_WHITESPACE
... for b in a:
-... print b,
-... print
-...
+... print(b, end=' ')
+... print()
+...
1 3 5
1 3 5 7
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/iterator.o
...skipped iterator_ext.so for lack of libboost_python.dylib...
darwin.compile.c++ ../../../bin.v2/libs/python/test/iterator.test/darwin-4.2.1/debug/input_iterator.o
...skipped input_iterator.so for lack of libboost_python.dylib...
...skipped iterator for lack of iterator_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/stl_iterator.test
common.mkdir ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug
copy stl_iterator.py
2to3 ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py
--- ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py (original)
+++ ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py (refactored)
@@ -32,8 +32,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py
--- ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py (original)
+++ ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.py (refactored)
@@ -6,7 +6,7 @@
>>> x = list_int()
>>> x.assign(iter([1,2,3,4,5]))
>>> for y in x:
-... print y
+... print(y)
1
2
3
@@ -15,12 +15,12 @@
>>> def generator():
... yield 1
... yield 2
-... raise RuntimeError, "oops"
+... raise RuntimeError("oops")
>>> try:
... x.assign(iter(generator()))
-... print "NOT OK"
+... print("NOT OK")
... except RuntimeError:
-... print "OK"
+... print("OK")
OK
'''
def run(args = None):
darwin.compile.c++ ../../../bin.v2/libs/python/test/stl_iterator.test/darwin-4.2.1/debug/stl_iterator.o
...skipped stl_iterator_ext.so for lack of libboost_python.dylib...
...skipped stl_iterator for lack of stl_iterator_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/extract.test
common.mkdir ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug
copy extract.py
2to3 ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py
--- ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py (original)
+++ ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py (refactored)
@@ -100,8 +100,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py
--- ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py (original)
+++ ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.py (refactored)
@@ -21,11 +21,11 @@
>>> assert not check_list(2)
>>> try: x = extract_list(2)
- ... except TypeError, x:
+ ... except TypeError as x:
... if str(x) != 'Expecting an object of type list; got an object of type int instead':
- ... print x
+ ... print(x)
... else:
- ... print 'expected an exception, got', x, 'instead'
+ ... print('expected an exception, got', x, 'instead')
Can't extract a list from a tuple. Use list(x) to convert a sequence
to a list:
@@ -47,7 +47,7 @@
>>> try: x = extract_cstring(1)
... except TypeError: pass
... else:
- ... print 'expected an exception, got', x, 'instead'
+ ... print('expected an exception, got', x, 'instead')
Extract an std::string (class) rvalue from a native Python type
darwin.compile.c++ ../../../bin.v2/libs/python/test/extract.test/darwin-4.2.1/debug/extract.o
...skipped extract_ext.so for lack of libboost_python.dylib...
...skipped extract for lack of extract_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/crossmod_opaque.test
common.mkdir ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1/debug
copy crossmod_opaque.py
2to3 ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1/debug/crossmod_opaque.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1/debug/crossmod_opaque.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1/debug/crossmod_opaque.py
--- ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1/debug/crossmod_opaque.py (original)
+++ ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1/debug/crossmod_opaque.py (refactored)
@@ -5,7 +5,7 @@
# http://www.boost.org/LICENSE_1_0.txt)
if __name__ == '__main__':
- print "running..."
+ print("running...")
import crossmod_opaque_a
import crossmod_opaque_b
@@ -13,4 +13,4 @@
crossmod_opaque_a.get()
crossmod_opaque_b.get()
- print "Done."
+ print("Done.")
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1/debug/crossmod_opaque_a.o
...skipped crossmod_opaque_a.so for lack of libboost_python.dylib...
darwin.compile.c++ ../../../bin.v2/libs/python/test/crossmod_opaque.test/darwin-4.2.1/debug/crossmod_opaque_b.o
...skipped crossmod_opaque_b.so for lack of libboost_python.dylib...
...skipped crossmod_opaque for lack of crossmod_opaque_a.so...
common.mkdir ../../../bin.v2/libs/python/test/opaque.test
common.mkdir ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug
copy opaque.py
2to3 ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py
--- ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py (original)
+++ ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py (refactored)
@@ -80,8 +80,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py
--- ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py (original)
+++ ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.py (refactored)
@@ -35,13 +35,13 @@
>>> try: use(0)
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
... and from strings to opaque objects
>>> try: use("")
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
Now check the same for another opaque pointer type
@@ -52,19 +52,19 @@
RuntimeError: success
>>> try: use2(0)
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
>>> try: use2("")
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
Check that opaque types are distinct
>>> try: use(get2())
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
>>> try: use2(get())
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
This used to result in a segmentation violation
darwin.compile.c++ ../../../bin.v2/libs/python/test/opaque.test/darwin-4.2.1/debug/opaque.o
...skipped opaque_ext.so for lack of libboost_python.dylib...
...skipped opaque for lack of opaque_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/voidptr.test
common.mkdir ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug
copy voidptr.py
2to3 ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py
--- ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py (original)
+++ ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py (refactored)
@@ -47,8 +47,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py
--- ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py (original)
+++ ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.py (refactored)
@@ -30,13 +30,13 @@
>>> try: use(0)
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
... and from strings to opaque objects
>>> try: use("")
... except TypeError: pass
-... else: print 'expected a TypeError'
+... else: print('expected a TypeError')
"""
def run(args = None):
import sys
darwin.compile.c++ ../../../bin.v2/libs/python/test/voidptr.test/darwin-4.2.1/debug/voidptr.o
...skipped voidptr_ext.so for lack of libboost_python.dylib...
...skipped voidptr for lack of voidptr_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/pickle1.test
common.mkdir ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug
copy pickle1.py
2to3 ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py
--- ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py (original)
+++ ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py (refactored)
@@ -34,8 +34,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py
--- ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py (original)
+++ ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.py (refactored)
@@ -14,14 +14,14 @@
>>> wd = pickle1_ext.world('California')
>>> pstr = pickle.dumps(wd)
>>> wl = pickle.loads(pstr)
- >>> print wd.greet()
+ >>> print(wd.greet())
Hello from California!
- >>> print wl.greet()
+ >>> print(wl.greet())
Hello from California!
>>> noop = pickle1_ext.noop()
>>> try: pickle.dumps(noop)
- ... except RuntimeError, e: print str(e)[:55]
+ ... except RuntimeError as e: print(str(e)[:55])
Pickling of "pickle1_ext.noop" instances is not enabled
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/pickle1.test/darwin-4.2.1/debug/pickle1.o
...skipped pickle1_ext.so for lack of libboost_python.dylib...
...skipped pickle1 for lack of pickle1_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/pickle2.test
common.mkdir ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug
copy pickle2.py
2to3 ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py
--- ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py (original)
+++ ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py (refactored)
@@ -43,8 +43,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py
--- ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py (original)
+++ ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.py (refactored)
@@ -16,8 +16,8 @@
... wd.set_secret_number(number)
... pstr = pickle.dumps(wd)
... wl = pickle.loads(pstr)
- ... print wd.greet(), wd.get_secret_number()
- ... print wl.greet(), wl.get_secret_number()
+ ... print(wd.greet(), wd.get_secret_number())
+ ... print(wl.greet(), wl.get_secret_number())
Hello from California! 24
Hello from California! 24
Hello from California! 42
@@ -29,8 +29,8 @@
>>> wd.__dict__
{'x': 1}
>>> try: pstr = pickle.dumps(wd)
- ... except RuntimeError, err: print err
- ...
+ ... except RuntimeError as err: print(err)
+ ...
Incomplete pickle support (__getstate_manages_dict__ not set)
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/pickle2.test/darwin-4.2.1/debug/pickle2.o
...skipped pickle2_ext.so for lack of libboost_python.dylib...
...skipped pickle2 for lack of pickle2_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/pickle3.test
common.mkdir ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug
copy pickle3.py
2to3 ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py
--- ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py (original)
+++ ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py (refactored)
@@ -38,8 +38,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py
--- ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py (original)
+++ ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.py (refactored)
@@ -21,8 +21,8 @@
... wd.z = 3. * number
... pstr = pickle.dumps(wd)
... wl = pickle.loads(pstr)
- ... print wd.greet(), wd.get_secret_number(), wd.x, wd.y, wd.z
- ... print wl.greet(), wl.get_secret_number(), wl.x, wl.y, wl.z
+ ... print(wd.greet(), wd.get_secret_number(), wd.x, wd.y, wd.z)
+ ... print(wl.greet(), wl.get_secret_number(), wl.x, wl.y, wl.z)
Hello from California! 24 48 yyyyyyyyyyyyyyyyyyyyyyyy 72.0
Hello from California! 24 48 yyyyyyyyyyyyyyyyyyyyyyyy 72.0
Hello from California! 42 84 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy 126.0
darwin.compile.c++ ../../../bin.v2/libs/python/test/pickle3.test/darwin-4.2.1/debug/pickle3.o
...skipped pickle3_ext.so for lack of libboost_python.dylib...
...skipped pickle3 for lack of pickle3_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/pickle4.test
common.mkdir ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug
copy pickle4.py
2to3 ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py
--- ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py (original)
+++ ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py (refactored)
@@ -32,8 +32,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py
--- ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py (original)
+++ ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.py (refactored)
@@ -17,9 +17,9 @@
>>> wd = pickle4_ext.world('California')
>>> pstr = pickle.dumps(wd)
>>> wl = pickle.loads(pstr)
- >>> print wd.greet()
+ >>> print(wd.greet())
Hello from California!
- >>> print wl.greet()
+ >>> print(wl.greet())
Hello from California!
'''
darwin.compile.c++ ../../../bin.v2/libs/python/test/pickle4.test/darwin-4.2.1/debug/pickle4.o
...skipped pickle4_ext.so for lack of libboost_python.dylib...
...skipped pickle4 for lack of pickle4_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/nested.test
common.mkdir ../../../bin.v2/libs/python/test/nested.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/nested.test/darwin-4.2.1/debug
copy nested.py
2to3 ../../../bin.v2/libs/python/test/nested.test/darwin-4.2.1/debug/nested.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/nested.test/darwin-4.2.1/debug/nested.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/nested.test/darwin-4.2.1/debug/nested.py
--- ../../../bin.v2/libs/python/test/nested.test/darwin-4.2.1/debug/nested.py (original)
+++ ../../../bin.v2/libs/python/test/nested.test/darwin-4.2.1/debug/nested.py (refactored)
@@ -33,8 +33,8 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/nested.test/darwin-4.2.1/debug/nested.o
...skipped nested_ext.so for lack of libboost_python.dylib...
...skipped nested for lack of nested_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/docstring.test
common.mkdir ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug
copy docstring.py
2to3 ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py
--- ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py (original)
+++ ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py (refactored)
@@ -134,11 +134,11 @@
import re
docmodule = lambda m: re.sub(".\10", "", pydoc.text.docmodule(m))
try:
- print 'printing module help:'
- print docmodule(docstring_ext)
- except object, x:
- print '********* failed **********'
- print x
+ print('printing module help:')
+ print(docmodule(docstring_ext))
+ except object as x:
+ print('********* failed **********')
+ print(x)
result = list(result)
result[0] += 1
return tuple(result)
@@ -146,8 +146,8 @@
return result
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py
--- ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py (original)
+++ ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.py (refactored)
@@ -8,14 +8,14 @@
... doc = obj.__doc__.splitlines()
... return "\\n".join(["|"+doc[i] for i in args])
->>> print selected_doc(X.__init__, 1, 2, 3, 4, 5)
+>>> print(selected_doc(X.__init__, 1, 2, 3, 4, 5))
|__init__( (object)self, (int)value) -> None :
| this is the __init__ function
| its documentation has two lines.
|
| C++ signature :
->>> print selected_doc(X.value, 1, 2, 4, 7, 8, 10)
+>>> print(selected_doc(X.value, 1, 2, 4, 7, 8, 10))
|value( (X)self) -> int :
| gets the value of the object
| C++ signature :
@@ -23,13 +23,13 @@
| also gets the value of the object
| C++ signature :
->>> print selected_doc(create, 1, 2, 3, 4)
+>>> print(selected_doc(create, 1, 2, 3, 4))
|create( (int)value) -> X :
| creates a new X object
|
| C++ signature :
->>> print selected_doc(fact, 1, 2, 3, 4)
+>>> print(selected_doc(fact, 1, 2, 3, 4))
|fact( (int)n) -> int :
| compute the factorial
|
@@ -37,23 +37,23 @@
>>> len(fact_usr_off_1.__doc__.splitlines())
5
->>> print selected_doc(fact_usr_off_1, 1, 3)
+>>> print(selected_doc(fact_usr_off_1, 1, 3))
|fact_usr_off_1( (int)n) -> int :
| C++ signature :
>>> len(fact_usr_on_1.__doc__.splitlines())
6
->>> print selected_doc(fact_usr_on_1, 1, 2, 4)
+>>> print(selected_doc(fact_usr_on_1, 1, 2, 4))
|fact_usr_on_1( (int)n) -> int :
| usr on 1
| C++ signature :
>>> len(fact_usr_off_2.__doc__.splitlines())
5
->>> print selected_doc(fact_usr_off_2, 1, 3)
+>>> print(selected_doc(fact_usr_off_2, 1, 3))
|fact_usr_off_2( (int)n) -> int :
| C++ signature :
>>> len(fact_usr_on_2.__doc__.splitlines())
6
->>> print selected_doc(fact_usr_on_2, 1, 2, 4)
+>>> print(selected_doc(fact_usr_on_2, 1, 2, 4))
|fact_usr_on_2( (int)n) -> int :
| usr on 2
| C++ signature :
@@ -61,59 +61,59 @@
>>> len(fact_sig_off_1.__doc__.splitlines())
2
->>> print selected_doc(fact_sig_off_1, 1)
+>>> print(selected_doc(fact_sig_off_1, 1))
|sig off 1
>>> len(fact_sig_on_1.__doc__.splitlines())
6
->>> print selected_doc(fact_sig_on_1, 1, 2, 4)
+>>> print(selected_doc(fact_sig_on_1, 1, 2, 4))
|fact_sig_on_1( (int)n) -> int :
| sig on 1
| C++ signature :
>>> len(fact_sig_off_2.__doc__.splitlines())
2
->>> print selected_doc(fact_sig_off_2, 1)
+>>> print(selected_doc(fact_sig_off_2, 1))
|sig off 2
>>> len(fact_sig_on_2.__doc__.splitlines())
6
->>> print selected_doc(fact_sig_on_2, 1, 2, 4)
+>>> print(selected_doc(fact_sig_on_2, 1, 2, 4))
|fact_sig_on_2( (int)n) -> int :
| sig on 2
| C++ signature :
->>> print fact_usr_off_sig_off_1.__doc__
+>>> print(fact_usr_off_sig_off_1.__doc__)
None
>>> len(fact_usr_on_sig_on_1.__doc__.splitlines())
6
->>> print selected_doc(fact_usr_on_sig_on_1, 1, 2, 4)
+>>> print(selected_doc(fact_usr_on_sig_on_1, 1, 2, 4))
|fact_usr_on_sig_on_1( (int)n) -> int :
| usr on sig on 1
| C++ signature :
>>> len(fact_usr_on_sig_off_1.__doc__.splitlines())
2
->>> print selected_doc(fact_usr_on_sig_off_1, 1)
+>>> print(selected_doc(fact_usr_on_sig_off_1, 1))
|usr on sig off 1
>>> len(fact_usr_on_sig_on_2.__doc__.splitlines())
6
->>> print selected_doc(fact_usr_on_sig_on_2, 1, 2, 4)
+>>> print(selected_doc(fact_usr_on_sig_on_2, 1, 2, 4))
|fact_usr_on_sig_on_2( (int)n) -> int :
| usr on sig on 2
| C++ signature :
->>> print selected_doc(fact_usr_on_psig_on_csig_off_1, 1, 2)
+>>> print(selected_doc(fact_usr_on_psig_on_csig_off_1, 1, 2))
|fact_usr_on_psig_on_csig_off_1( (int)n) -> int :
| usr on psig on csig off 1
->>> print selected_doc(fact_usr_on_psig_off_csig_on_1, 1, 3)
+>>> print(selected_doc(fact_usr_on_psig_off_csig_on_1, 1, 3))
|usr on psig off csig on 1
|C++ signature :
->>> print fact_usr_off_psig_on_csig_off_1.__doc__.splitlines()[1]
+>>> print(fact_usr_off_psig_on_csig_off_1.__doc__.splitlines()[1])
fact_usr_off_psig_on_csig_off_1( (int)n) -> int
->>> print selected_doc(fact_usr_off_psig_off_csig_on_1,1)
+>>> print(selected_doc(fact_usr_off_psig_off_csig_on_1,1))
|C++ signature :
darwin.compile.c++ ../../../bin.v2/libs/python/test/docstring.test/darwin-4.2.1/debug/docstring.o
...skipped docstring_ext.so for lack of libboost_python.dylib...
...skipped docstring for lack of docstring_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/pytype_function.test
common.mkdir ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug
copy pytype_function.py
2to3 ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py
--- ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py (original)
+++ ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py (refactored)
@@ -22,10 +22,10 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print "running..."
+ print("running...")
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py
--- ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py (original)
+++ ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.py (refactored)
@@ -4,13 +4,13 @@
"""
>>> from pytype_function_ext import *
->>> print func.__doc__.splitlines()[1]
+>>> print(func.__doc__.splitlines()[1])
func( (A)arg1) -> A :
->>> print func.__module__
+>>> print(func.__module__)
pytype_function_ext
->>> print func.__name__
+>>> print(func.__name__)
func
"""
def run(args = None):
darwin.compile.c++ ../../../bin.v2/libs/python/test/pytype_function.test/darwin-4.2.1/debug/pytype_function.o
...skipped pytype_function_ext.so for lack of libboost_python.dylib...
...skipped pytype_function for lack of pytype_function_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/vector_indexing_suite.test
common.mkdir ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug
copy vector_indexing_suite.py
2to3 ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py
--- ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py (original)
+++ ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py (refactored)
@@ -358,10 +358,10 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print 'running...'
+ print('running...')
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py
--- ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py (original)
+++ ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.py (refactored)
@@ -32,7 +32,7 @@
... s += repr(x)
... s += ' '
... s += ']'
-... print s
+... print(s)
#####################################################################
# Replace all the contents using slice syntax
@@ -339,7 +339,7 @@
#####################################################################
>>> sv = StringVec()
>>> sv.append('a')
->>> print sv[0]
+>>> print(sv[0])
a
#####################################################################
darwin.compile.c++ ../../../bin.v2/libs/python/test/vector_indexing_suite.test/darwin-4.2.1/debug/vector_indexing_suite.o
...skipped vector_indexing_suite_ext.so for lack of libboost_python.dylib...
...skipped vector_indexing_suite for lack of vector_indexing_suite_ext.so...
common.mkdir ../../../bin.v2/libs/python/test/pointer_vector.test
common.mkdir ../../../bin.v2/libs/python/test/pointer_vector.test/darwin-4.2.1
common.mkdir ../../../bin.v2/libs/python/test/pointer_vector.test/darwin-4.2.1/debug
copy pointer_vector.py
2to3 ../../../bin.v2/libs/python/test/pointer_vector.test/darwin-4.2.1/debug/pointer_vector.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored ../../../bin.v2/libs/python/test/pointer_vector.test/darwin-4.2.1/debug/pointer_vector.py
RefactoringTool: Files that were modified:
RefactoringTool: ../../../bin.v2/libs/python/test/pointer_vector.test/darwin-4.2.1/debug/pointer_vector.py
--- ../../../bin.v2/libs/python/test/pointer_vector.test/darwin-4.2.1/debug/pointer_vector.py (original)
+++ ../../../bin.v2/libs/python/test/pointer_vector.test/darwin-4.2.1/debug/pointer_vector.py (refactored)
@@ -21,10 +21,10 @@
return doctest.testmod(sys.modules.get(__name__))
if __name__ == '__main__':
- print 'running...'
+ print('running...')
import sys
status = run()[0]
- if (status == 0): print "Done."
+ if (status == 0): print("Done.")
sys.exit(status)
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.
darwin.compile.c++ ../../../bin.v2/libs/python/test/pointer_vector.test/darwin-4.2.1/debug/pointer_vector.o
...skipped