We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9068a8 commit ae0cc42Copy full SHA for ae0cc42
axelrod/load_data_.py
@@ -5,8 +5,8 @@ def load_file(filename: str, directory: str) -> List[List[str]]:
5
"""Loads a data file stored in the Axelrod library's data subdirectory,
6
likely for parameters for a strategy."""
7
path = '/'.join((directory, filename))
8
- data = pkg_resources.resource_string(__name__, path)
9
- data = data.decode('UTF-8', 'replace')
+ data_bytes = pkg_resources.resource_string(__name__, path)
+ data = data_bytes.decode('UTF-8', 'replace')
10
rows = []
11
for line in data.split('\n'):
12
if line.startswith('#') or len(line) == 0:
0 commit comments