Description: use raw strings for strings with escape sequences Author: Ananthu C V Bug-Debian: https://bugs.debian.org/1085666 Last-Update: 2024-12-04 --- a/lefsebiom/AbundanceTable.py +++ b/lefsebiom/AbundanceTable.py @@ -386,3 +386,3 @@ #Used to substitute . to - - reSubPeriod = re.compile('\.') + reSubPeriod = re.compile(r'\.') --- a/lefse/lefse_format_input.py +++ b/lefse/lefse_format_input.py @@ -273,3 +273,3 @@ - for v in ["\|"]: + for v in [r"\|"]: ret = [re.sub(v,".",f) for f in ret] @@ -463,2 +463,2 @@ if __name__ == '__main__': - format_input() \ No newline at end of file + format_input()