leichongxiang / sshpt

Automatically exported from code.google.com/p/sshpt
0 stars 0 forks source link

misspelled string #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I just briefly looked at the source code and at line 60 there is:

srting = re.sub(r'(")', '""', string)

so, the string is misspelled. It doesn't affect though, because
the substitution is done in place and the assignment is not needed.

Original issue reported on code.google.com by eturtiai...@gmail.com on 7 Jan 2011 at 12:05

GoogleCodeExporter commented 9 years ago
the double quote will never get replaced
    sting = re.sub(r'(")', '""', string) # Convert double quotes to double double quotes (e.g. 'foo "bar" blah' becomes 'foo ""bar"" blah')

Original comment by rui.va...@gmail.com on 8 Oct 2014 at 7:44