Skip to content

Commit 4ddcba4

Browse files
committed
Py2 and Py3 support.
1 parent e7719c4 commit 4ddcba4

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

algorithms/a_star_path_finding.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from builtins import range
2+
from builtins import object
13
import heapq
24

35

algorithms/permutations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from builtins import range
12
def permutations(lst):
23
"""Generator for list permutations.
34

algorithms/string.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from builtins import range
12
def string_matching_naive(text='', pattern=''):
23
"""Returns positions where pattern is found in text.
34

0 commit comments

Comments
 (0)