Hello everybody,
Pylint 3k is coming soon ! We can already run it on some code ported by
*2to3*! ("nonlocal" and extended tuple unpacking is not implemented, so
it will crash)
Pull up logilab-common, logilab-astng and pylint, and run *2to3*,
and here you go...
but hold on, there are two problems I hadn't have the time
to commit; here are the quickfixes:
Logilab-Common:
----------------
diff -r 634ebbea123e graph.py
--- a/graph.py Tue Oct 05 15:37:12 2010 +0200
+++ b/graph.py Thu Oct 14 18:01:47 2010 +0200
@@ -187,9 +187,10 @@
cycles = '\n'.join([' -> '.join(cycle) for cycle in cycles])
raise UnorderableGraph(cycles)
ordered = []
+ node_sort = lambda node: id(node)
while graph:
# sorted to get predictable results
- for node, deps in sorted(graph.items()):
+ for node, deps in sorted(graph.items(), key=node_sort):
if not deps:
ordered.append(node)
del graph[node]
Pylint
-------
diff -r 135567f34adb config.py
--- a/config.py Wed Oct 13 19:24:03 2010 +0200
+++ b/config.py Thu Oct 14 18:05:17 2010 +0200
@@ -64,7 +64,7 @@
"""pickle results"""
data_file = get_pdata_path(base, 1)
try:
- pickle.dump(results, open(data_file, 'w'))
+ pickle.dump(results, open(data_file, 'wb'))
except (IOError, OSError) as ex:
print('Unable to create file %s: %s' % (data_file, ex),
file=sys.stderr)
(some tests from astng does not pass though ; I had no time to make
further investigation on Pylint tests).
Anyway, you can run the tests or see what you can do else ...
--
Emile Anclin <[email protected]>
http://www.logilab.fr/ http://www.logilab.org/
Informatique scientifique & et gestion de connaissances
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects