migration: update pep8analyis to latest Nit spec
[nit.git] / contrib / pep8analysis / src / cfg / cfg_base.nit
index c532215..6e22cf2 100644 (file)
@@ -85,8 +85,8 @@ class CFG
                end
 
                # sort breakpoints in order
-               starts = starts.uniq.sort_filter.to_a
-               ends = ends.uniq.sort_filter.to_a
+               starts = starts.iterator.uniq.sort.to_a
+               ends = ends.iterator.uniq.sort.to_a
 
                # create basic blocks
                var current_block: nullable BasicBlock = null