File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ Changelog
3030* Do not report multiple E101 if only the first indentation starts
3131 with a tab. (Issue #237)
3232
33+ * Fix a rare false positive W602. (Issue #34)
34+
3335
34361.4.6 (2013-07-02)
3537------------------
Original file line number Diff line number Diff line change 9393
9494INDENT_REGEX = re .compile (r'([ \t]*)' )
9595RAISE_COMMA_REGEX = re .compile (r'raise\s+\w+\s*,' )
96- RERAISE_COMMA_REGEX = re .compile (r'raise\s+\w+\s*,\s*\w+\s*,\s*\w+ ' )
96+ RERAISE_COMMA_REGEX = re .compile (r'raise\s+\w+\s*,.*, \s*\w+\s*$ ' )
9797ERRORCODE_REGEX = re .compile (r'\b[A-Z]\d{3}\b' )
9898DOCSTRING_REGEX = re .compile (r'u?r?["\']' )
9999EXTRANEOUS_WHITESPACE_REGEX = re .compile (r'[[({] | []}),;:]' )
Original file line number Diff line number Diff line change 77raise ValueError , "hello %s %s" % (1 , 2 )
88#: Okay
99raise type_ , val , tb
10+ raise Exception , Exception ("f" ), t
1011#: W603
1112if x <> 0 :
1213 x = 0
You can’t perform that action at this time.
0 commit comments