vivekkoya / classfiles

Anomalous backslash detected PY-W0073
Bug risk
Major
a year ago2 years old
Anomalous backslash in string: '\,'. String constant might be missing an r prefix.
 25    with io.open(file_name + ".tsv", mode="r", encoding="windows-1252") as tsv:
 26        for line in tsv:
 27            csv.write(re.sub('\t', ',', re.sub(
 28                '(^|[\t])([^\t]*\,[^\t\n]*)', r'\1"\2"', line))) 29
 30    # csv.close()
 31
Anomalous backslash in string: '\]'. String constant might be missing an r prefix.
 6@author: Vivekanand Koya
 7"""
 8# Sets Containing ASCII values for different groups of characters
 9ASCII = ["@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "\[","\\","\]", "^", "_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~"]10LowerCaseLetters = ASCII[33:59]
11UpperCaseLetters = ASCII[1:27]
12Alphabet = LowerCaseLetters + UpperCaseLetters
Anomalous backslash in string: '\['. String constant might be missing an r prefix.
 6@author: Vivekanand Koya
 7"""
 8# Sets Containing ASCII values for different groups of characters
 9ASCII = ["@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "\[","\\","\]", "^", "_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~"]10LowerCaseLetters = ASCII[33:59]
11UpperCaseLetters = ASCII[1:27]
12Alphabet = LowerCaseLetters + UpperCaseLetters