Skip to content

Commit f4cdd43

Browse files
authored
Merge pull request #13 from AndrewLvov/master
Replace deprecated `IntervalTree.search` with `.overlap`
2 parents cbe9203 + 3ed549f commit f4cdd43

File tree

5 files changed

+142
-138
lines changed

5 files changed

+142
-138
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ matrix:
88
- python: 2.7
99
env: TOXENV=py27-flake8_26,py27-flake8_3
1010

11-
- python: 3.3
12-
env: TOXENV=py33-flake8_26,py33-flake8_3
13-
1411
- python: 3.4
1512
env: TOXENV=py34-flake8_26,py34-flake8_3
1613

ebb_lint/flake8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def byte_of_node(self, node):
103103

104104
def byte_intersection(tree, lower, upper):
105105
ret = 0
106-
for i in tree.search(lower, upper):
106+
for i in tree.overlap(lower, upper):
107107
ret += min(i.end, upper) - max(i.begin, lower)
108108
return ret
109109

0 commit comments

Comments
 (0)