File: SyntaxWarning.patch

package info (click to toggle)
importmagic 0.1.7-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,296 kB
  • sloc: python: 5,816; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- a/importmagic/util.py
+++ b/importmagic/util.py
@@ -6,7 +6,7 @@
 text_type = str
 
 
-CODING_COOKIE_RE = re.compile('(^\s*#.*)coding[:=]', re.M)
+CODING_COOKIE_RE = re.compile(r'(^\s*#.*)coding[:=]', re.M)
 
 
 def parse_ast(source, filename=None):