Implement pair_to_filename to datahandler
includes tests - taken from #2744 and modified to adapt to new structure
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user