File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22#
3- #===- google-java-format-diff.py - google-java-format Diff Reformatter -----===#
3+ # ===- google-java-format-diff.py - google-java-format Diff Reformatter -----===#
44#
55# The LLVM Compiler Infrastructure
66#
77# This file is distributed under the University of Illinois Open Source
88# License. See LICENSE.TXT for details.
99#
10- #===------------------------------------------------------------------------===#
10+ # ===------------------------------------------------------------------------===#
1111
1212"""
1313google-java-format Diff Reformatter
@@ -75,7 +75,7 @@ def main():
7575 lines_by_file = {}
7676
7777 for line in sys .stdin :
78- match = re .search ('^\+\+\+\ (.*?/){%s}(\S*)' % args .p , line )
78+ match = re .search (r '^\+\+\+\ (.*?/){%s}(\S*)' % args .p , line )
7979 if match :
8080 filename = match .group (2 )
8181 if filename == None :
@@ -88,7 +88,7 @@ def main():
8888 if not re .match ('^%s$' % args .iregex , filename , re .IGNORECASE ):
8989 continue
9090
91- match = re .search ('^@@.*\+(\d+)(,(\d+))?' , line )
91+ match = re .search (r '^@@.*\+(\d+)(,(\d+))?' , line )
9292 if match :
9393 start_line = int (match .group (1 ))
9494 line_count = 1
You can’t perform that action at this time.
0 commit comments