Implement pair_to_filename to datahandler

includes tests - taken from #2744 and modified to adapt to new structure
This commit is contained in:
Matthias
2020-01-05 10:36:08 +01:00
parent bc6a10353b
commit 4eaaec9d1a
4 changed files with 55 additions and 16 deletions

View File

@@ -93,7 +93,7 @@ def file_load_json(file):
def pair_to_filename(pair: str) -> str:
for ch in ['/', ' ', '.']:
for ch in ['/', '-', ' ', '.', '@', '$', '+', ':']:
pair = pair.replace(ch, '_')
return pair