=> Bootstrap dependency digest>=20211023: found digest-20211023 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for py310-logilab-astng-0.24.3 (cd /tmp/devel/py-logilab-astng/work/logilab-astng-0.24.3/ && /usr/bin/env USETOOLS=no PTHREAD_CFLAGS=\ -pthread\ PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\ DL_LDFLAGS=\ -pthread DL_LIBS= PYVERSSUFFIX=3.10 PYTHON=/usr/pkg/bin/python3.10 CC=gcc CFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/include\ -I/usr/pkg/include/python3.10 CPPFLAGS=-I/usr/include\ -I/usr/pkg/include/python3.10 CXX=c++ CXXFLAGS=-O2\ -fPIC\ -D_FORTIFY_SOURCE=2\ -I/usr/include\ -I/usr/pkg/include/python3.10 COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/lib\ -Wl,-R/usr/lib\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/tmp/devel/py-logilab-astng/work/.cwrapper/bin:/tmp/devel/py-logilab-astng/work/.buildlink/bin:/tmp/devel/py-logilab-astng/work/.tools/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp CXXCPP=cpp HOME=/tmp/devel/py-logilab-astng/work/.home CWRAPPERS_CONFIG_DIR=/tmp/devel/py-logilab-astng/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ pbulk\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ pbulk\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ pbulk\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ pbulk\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/tmp/devel/py-logilab-astng/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/tmp/devel/py-logilab-astng/work/.tools/bin/itstool GDBUS_CODEGEN=/tmp/devel/py-logilab-astng/work/.tools/bin/gdbus-codegen PKG_CONFIG= PKG_CONFIG_LIBDIR=/tmp/devel/py-logilab-astng/work/.buildlink/lib/pkgconfig:/tmp/devel/py-logilab-astng/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/tmp/devel/py-logilab-astng/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/tmp/devel/py-logilab-astng/work/.cwrapper/config /usr/pkg/bin/python3.10 setup.py build -j4) running build running build_py creating build creating build/lib creating build/lib/logilab creating build/lib/logilab/astng copying ./__init__.py -> build/lib/logilab/astng copying ./manager.py -> build/lib/logilab/astng copying ./builder.py -> build/lib/logilab/astng copying ./as_string.py -> build/lib/logilab/astng copying ./inspector.py -> build/lib/logilab/astng copying ./node_classes.py -> build/lib/logilab/astng copying ./bases.py -> build/lib/logilab/astng copying ./exceptions.py -> build/lib/logilab/astng copying ./rebuilder.py -> build/lib/logilab/astng copying ./inference.py -> build/lib/logilab/astng copying ./nodes.py -> build/lib/logilab/astng copying ./__pkginfo__.py -> build/lib/logilab/astng copying ./utils.py -> build/lib/logilab/astng copying ./mixins.py -> build/lib/logilab/astng copying ./scoped_nodes.py -> build/lib/logilab/astng copying ./protocols.py -> build/lib/logilab/astng copying ./raw_building.py -> build/lib/logilab/astng package init file './test/__init__.py' not found (or not a regular file) creating build/lib/logilab/astng/test copying ./test/unittest_utils.py -> build/lib/logilab/astng/test copying ./test/unittest_scoped_nodes.py -> build/lib/logilab/astng/test copying ./test/unittest_lookup.py -> build/lib/logilab/astng/test copying ./test/unittest_builder.py -> build/lib/logilab/astng/test copying ./test/unittest_manager.py -> build/lib/logilab/astng/test copying ./test/unittest_python3.py -> build/lib/logilab/astng/test copying ./test/unittest_regrtest.py -> build/lib/logilab/astng/test copying ./test/unittest_inspector.py -> build/lib/logilab/astng/test copying ./test/unittest_inference.py -> build/lib/logilab/astng/test copying ./test/unittest_nodes.py -> build/lib/logilab/astng/test creating build/lib/logilab/astng/test/data2 copying ./test/data2/__init__.py -> build/lib/logilab/astng/test/data2 copying ./test/data2/suppliermodule_test.py -> build/lib/logilab/astng/test/data2 copying ./test/data2/clientmodule_test.py -> build/lib/logilab/astng/test/data2 creating build/lib/logilab/astng/test/data copying ./test/data/__init__.py -> build/lib/logilab/astng/test/data copying ./test/data/absimport.py -> build/lib/logilab/astng/test/data copying ./test/data/notall.py -> build/lib/logilab/astng/test/data copying ./test/data/nonregr.py -> build/lib/logilab/astng/test/data copying ./test/data/format.py -> build/lib/logilab/astng/test/data copying ./test/data/all.py -> build/lib/logilab/astng/test/data copying ./test/data/email.py -> build/lib/logilab/astng/test/data copying ./test/data/module.py -> build/lib/logilab/astng/test/data copying ./test/data/noendingnewline.py -> build/lib/logilab/astng/test/data copying ./test/data/module2.py -> build/lib/logilab/astng/test/data creating build/lib/logilab/astng/test/data/SSL1 copying ./test/data/SSL1/Connection1.py -> build/lib/logilab/astng/test/data/SSL1 copying ./test/data/SSL1/__init__.py -> build/lib/logilab/astng/test/data/SSL1 creating build/lib/logilab/astng/test/data/appl copying ./test/data/appl/__init__.py -> build/lib/logilab/astng/test/data/appl copying ./test/data/appl/myConnection.py -> build/lib/logilab/astng/test/data/appl package init file './test/__init__.py' not found (or not a regular file) RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to build/lib/logilab/astng/brain/py2mechanize.py RefactoringTool: No changes to build/lib/logilab/astng/brain/py2qt4.py RefactoringTool: Refactored build/lib/logilab/astng/brain/py2stdlib.py RefactoringTool: Files that were modified: RefactoringTool: build/lib/logilab/astng/brain/py2mechanize.py RefactoringTool: build/lib/logilab/astng/brain/py2qt4.py RefactoringTool: build/lib/logilab/astng/brain/py2stdlib.py --- build/lib/logilab/astng/brain/py2stdlib.py (original) +++ build/lib/logilab/astng/brain/py2stdlib.py (refactored) @@ -98,7 +98,7 @@ ''') - for func_name, func in fake.locals.items(): + for func_name, func in list(fake.locals.items()): module.locals[func_name] = func @@ -125,7 +125,7 @@ return '' ''') - for func_name, func in fake.locals.items(): + for func_name, func in list(fake.locals.items()): module.locals[func_name] = func def subprocess_transform(module): @@ -156,7 +156,7 @@ pass ''') - for func_name, func in fake.locals.items(): + for func_name, func in list(fake.locals.items()): module.locals[func_name] = func RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored build/lib/logilab/astng/test/regrtest_data/descriptor_crash.py RefactoringTool: Refactored build/lib/logilab/astng/test/regrtest_data/absimp/__init__.py RefactoringTool: Refactored build/lib/logilab/astng/test/regrtest_data/absimp/string.py RefactoringTool: No changes to build/lib/logilab/astng/test/regrtest_data/absimp/sidepackage/__init__.py RefactoringTool: Refactored build/lib/logilab/astng/test/regrtest_data/package/__init__.py RefactoringTool: Refactored build/lib/logilab/astng/test/regrtest_data/package/absimport.py RefactoringTool: No changes to build/lib/logilab/astng/test/regrtest_data/package/hello.py RefactoringTool: No changes to build/lib/logilab/astng/test/regrtest_data/package/import_package_subpackage_module.py RefactoringTool: No changes to build/lib/logilab/astng/test/regrtest_data/package/subpackage/__init__.py RefactoringTool: No changes to build/lib/logilab/astng/test/regrtest_data/package/subpackage/module.py RefactoringTool: Files that were modified: RefactoringTool: build/lib/logilab/astng/test/regrtest_data/descriptor_crash.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/absimp/__init__.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/absimp/string.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/absimp/sidepackage/__init__.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/package/__init__.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/package/absimport.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/package/hello.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/package/import_package_subpackage_module.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/package/subpackage/__init__.py RefactoringTool: build/lib/logilab/astng/test/regrtest_data/package/subpackage/module.py --- build/lib/logilab/astng/test/regrtest_data/descriptor_crash.py (original) +++ build/lib/logilab/astng/test/regrtest_data/descriptor_crash.py (refactored) @@ -1,8 +1,8 @@ -import urllib +import urllib.request, urllib.parse, urllib.error class Page(object): - _urlOpen = staticmethod(urllib.urlopen) + _urlOpen = staticmethod(urllib.request.urlopen) def getPage(self, url): handle = self._urlOpen(url) --- build/lib/logilab/astng/test/regrtest_data/absimp/__init__.py (original) +++ build/lib/logilab/astng/test/regrtest_data/absimp/__init__.py (refactored) @@ -1,5 +1,5 @@ """a package with absolute import activated """ -from __future__ import absolute_import + --- build/lib/logilab/astng/test/regrtest_data/absimp/string.py (original) +++ build/lib/logilab/astng/test/regrtest_data/absimp/string.py (refactored) @@ -1,3 +1,3 @@ -from __future__ import absolute_import + import string -print string +print(string) --- build/lib/logilab/astng/test/regrtest_data/package/__init__.py (original) +++ build/lib/logilab/astng/test/regrtest_data/package/__init__.py (refactored) @@ -1,4 +1,4 @@ """package's __init__ file""" -import subpackage +from . import subpackage --- build/lib/logilab/astng/test/regrtest_data/package/absimport.py (original) +++ build/lib/logilab/astng/test/regrtest_data/package/absimport.py (refactored) @@ -1,6 +1,6 @@ -from __future__ import absolute_import + import import_package_subpackage_module # fail -print import_package_subpackage_module +print(import_package_subpackage_module) from . import hello as hola RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to build/lib/logilab/astng/test/data/__init__.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/absimport.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/all.py RefactoringTool: No changes to build/lib/logilab/astng/test/data/email.py RefactoringTool: No changes to build/lib/logilab/astng/test/data/format.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/module.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/module2.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/noendingnewline.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/nonregr.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/notall.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/SSL1/Connection1.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/SSL1/__init__.py RefactoringTool: No changes to build/lib/logilab/astng/test/data/appl/__init__.py RefactoringTool: Refactored build/lib/logilab/astng/test/data/appl/myConnection.py RefactoringTool: Files that were modified: RefactoringTool: build/lib/logilab/astng/test/data/__init__.py RefactoringTool: build/lib/logilab/astng/test/data/absimport.py RefactoringTool: build/lib/logilab/astng/test/data/all.py RefactoringTool: build/lib/logilab/astng/test/data/email.py RefactoringTool: build/lib/logilab/astng/test/data/format.py RefactoringTool: build/lib/logilab/astng/test/data/module.py RefactoringTool: build/lib/logilab/astng/test/data/module2.py RefactoringTool: build/lib/logilab/astng/test/data/noendingnewline.py RefactoringTool: build/lib/logilab/astng/test/data/nonregr.py RefactoringTool: build/lib/logilab/astng/test/data/notall.py RefactoringTool: build/lib/logilab/astng/test/data/SSL1/Connection1.py RefactoringTool: build/lib/logilab/astng/test/data/SSL1/__init__.py RefactoringTool: build/lib/logilab/astng/test/data/appl/__init__.py RefactoringTool: build/lib/logilab/astng/test/data/appl/myConnection.py RefactoringTool: Warnings/messages while refactoring: RefactoringTool: ### In file build/lib/logilab/astng/test/data/module.py ### RefactoringTool: Line 87: You should use a for loop here --- build/lib/logilab/astng/test/data/absimport.py (original) +++ build/lib/logilab/astng/test/data/absimport.py (refactored) @@ -1,3 +1,3 @@ -from __future__ import absolute_import + import email from email import message --- build/lib/logilab/astng/test/data/all.py (original) +++ build/lib/logilab/astng/test/data/all.py (refactored) @@ -4,6 +4,6 @@ other = 'o' class Aaa: pass -def func(): print 'yo' +def func(): print('yo') __all__ = 'Aaa', '_bla', 'name' --- build/lib/logilab/astng/test/data/module.py (original) +++ build/lib/logilab/astng/test/data/module.py (refactored) @@ -19,7 +19,7 @@ else: break else: - print '!!!' + print('!!!') class YO: @@ -29,7 +29,7 @@ def __init__(self): try: self.yo = 1 - except ValueError, ex: + except ValueError as ex: pass except (NameError, TypeError): raise XXXError() @@ -52,10 +52,10 @@ local = None autre = [a for (a, b) in MY_DICT if b] if b in autre: - print 'yo', + print('yo', end=' ') else: if a in autre: - print 'hehe' + print('hehe') global_access(local, val=autre) finally: return local @@ -67,13 +67,13 @@ def class_method(cls): """class method test""" - exec a in b + exec(a, b) class_method = classmethod(class_method) def four_args(a, b, c, d): """four arguments (was nested_args)""" - print a, b, c, d + print(a, b, c, d) while 1: if a: break @@ -84,6 +84,6 @@ d = ((a) and (b)) or (c) else: c = ((a) and (b)) or (d) - map(lambda x, y: (y, x), a) + list(map(lambda x, y: (y, x), a)) redirect = four_args --- build/lib/logilab/astng/test/data/module2.py (original) +++ build/lib/logilab/astng/test/data/module2.py (refactored) @@ -70,16 +70,16 @@ del YO.member del YO [SYN1, SYN2] = (Concrete0, Concrete1) -assert `1` +assert repr(1) b = (1) | (((2) & (3)) ^ (8)) bb = ((1) | (two)) | (6) ccc = ((one) & (two)) & (three) dddd = ((x) ^ (o)) ^ (r) -exec 'c = 3' -exec 'c = 3' in {}, {} +exec('c = 3') +exec('c = 3', {}, {}) def raise_string(a=2, *args, **kwargs): - raise Exception, 'yo' + raise Exception('yo') yield 'coucou' yield a = (b) + (2) @@ -97,8 +97,8 @@ e = d[:] e = d[a:b:c] raise_string(*args, **kwargs) -print >> stream, 'bonjour' -print >> stream, 'salut', +print('bonjour', file=stream) +print('salut', end=' ', file=stream) def make_class(any, base=data.module.YO, *args, **kwargs): """check base is correctly resolved to Concrete0""" --- build/lib/logilab/astng/test/data/noendingnewline.py (original) +++ build/lib/logilab/astng/test/data/noendingnewline.py (refactored) @@ -18,7 +18,7 @@ def xxx(self): if False: pass - print 'a' + print('a') if False: pass @@ -26,11 +26,11 @@ if False: pass - print 'rara' + print('rara') if __name__ == '__main__': - print 'test2' + print('test2') unittest.main() --- build/lib/logilab/astng/test/data/nonregr.py (original) +++ build/lib/logilab/astng/test/data/nonregr.py (refactored) @@ -1,4 +1,4 @@ -from __future__ import generators + try: enumerate = enumerate @@ -13,7 +13,7 @@ def toto(value): for k, v in value: - print v.get('yo') + print(v.get('yo')) import imp --- build/lib/logilab/astng/test/data/notall.py (original) +++ build/lib/logilab/astng/test/data/notall.py (refactored) @@ -4,5 +4,5 @@ other = 'o' class Aaa: pass -def func(): print 'yo' +def func(): print('yo') --- build/lib/logilab/astng/test/data/SSL1/Connection1.py (original) +++ build/lib/logilab/astng/test/data/SSL1/Connection1.py (refactored) @@ -11,4 +11,4 @@ """An SSL connection.""" def __init__(self, ctx, sock=None): - print 'init Connection' + print('init Connection') --- build/lib/logilab/astng/test/data/SSL1/__init__.py (original) +++ build/lib/logilab/astng/test/data/SSL1/__init__.py (refactored) @@ -1 +1 @@ -from Connection1 import Connection +from .Connection1 import Connection --- build/lib/logilab/astng/test/data/appl/myConnection.py (original) +++ build/lib/logilab/astng/test/data/appl/myConnection.py (refactored) @@ -4,8 +4,8 @@ """An SSL connection.""" def __init__(self, dummy): - print 'MyConnection init' + print('MyConnection init') if __name__ == '__main__': myConnection = MyConnection(' ') - raw_input('Press Enter to continue...') + input('Press Enter to continue...') RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to build/lib/logilab/astng/test/data2/clientmodule_test.py RefactoringTool: No changes to build/lib/logilab/astng/test/data2/suppliermodule_test.py RefactoringTool: Files that need to be modified: RefactoringTool: build/lib/logilab/astng/test/data2/clientmodule_test.py RefactoringTool: build/lib/logilab/astng/test/data2/suppliermodule_test.py running 2to3 on build/lib/logilab/astng/brain running 2to3 on build/lib/logilab/astng/test/regrtest_data running 2to3 on build/lib/logilab/astng/test/data running 2to3 on build/lib/logilab/astng/test/data2