Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb45864-python3' into 'master'
[timed] Drop Python 2 support. JB#45864

See merge request mer-core/timed!22
  • Loading branch information
blam committed Jul 8, 2020
2 parents b9a9ce7 + 37a9ece commit 6b2dd13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/ta_voland_service/depend_filter.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- encoding: utf8 -*-

# ----------------------------------------------------------------------------
Expand All @@ -13,7 +13,7 @@ def is_local(path):
return not path.startswith("/")

def print_rule(dest, srce):
print "%s\\\n" % "\\\n\t".join(["%s:" % dest] + srce)
print("%s\\\n" % "\\\n\t".join(["%s:" % dest] + srce))

def set_extension(path, ext):
return os.path.splitext(path)[0] + ext
Expand All @@ -29,7 +29,7 @@ def fix_directory(dest, srce):
if __name__ == "__main__":

data = sys.stdin.readlines()
data = map(lambda x:x.rstrip(), data)
data = [x.rstrip() for x in data]
data.reverse()

deps = []
Expand All @@ -52,13 +52,13 @@ def fix_directory(dest, srce):
dest = fix_directory(dest, srce)

# remove secondary deps with absolute path
temp = filter(is_local, temp)
temp = list(filter(is_local, temp))

# sort secondary sources
temp.sort()

srce = [srce] + temp
srce = map(normalize_path, srce)
srce = list(map(normalize_path, srce))

deps.append((dest,srce))

Expand Down

0 comments on commit 6b2dd13

Please sign in to comment.