Skip to content
Snippets Groups Projects
Commit f5093b2e authored by Damian Johnson's avatar Damian Johnson
Browse files

Fix test_version_position for python3

Correcting a couple typing regressions that slipped in...

  https://trac.torproject.org/projects/tor/ticket/30597
parent eabc0811
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ def _date(val):
def _csv(val):
return map(lambda v: v.strip(), val.split(',')) if val is not None else None
return list(map(lambda v: v.strip(), val.split(','))) if val is not None else None
# mapping of attributes => (header, type)
......
......@@ -85,14 +85,14 @@ new_header=neat stuff
=====
""".strip()
WRONG_VERSION_POSITION = """
WRONG_VERSION_POSITION = b"""
1410723598
file_created=2019-01-14T05:35:06
version=1.1.0
=====
""".strip()
RIGHT_VERSION_POSITION = """
RIGHT_VERSION_POSITION = b"""
1410723598
version=1.1.0
file_created=2019-01-14T05:35:06
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment