commit | 2d315bcb014985b4c6e9b67fe90a9ca2ae4744ab | [log] [tgz] |
---|---|---|
author | Alan Du <[email protected]> | Wed Jan 31 00:05:55 2018 -0500 |
committer | Alan Du <[email protected]> | Wed Jan 31 00:05:55 2018 -0500 |
tree | b7e8b86210fdf7985a6f6e8a28f05d2874df2e41 | |
parent | 56e706f2ccd202286571f94f846ac65ffe522da7 [diff] |
YAPF
diff --git a/yapf/yapflib/format_token.py b/yapf/yapflib/format_token.py index 98417a2..d86c16d 100644 --- a/yapf/yapflib/format_token.py +++ b/yapf/yapflib/format_token.py
@@ -281,8 +281,7 @@ else: prefix = "[uUbB]?[rR]?" - regex = r'^{prefix}(?P<delim>"""|\'\'\').*(?P=delim)$'.format( - prefix=prefix) + regex = r'^{prefix}(?P<delim>"""|\'\'\').*(?P=delim)$'.format(prefix=prefix) return (self.is_string and re.match(regex, self.value, re.DOTALL) is not None)