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 1
1
#!/usr/bin/env python3
2
2
#
3
- #===- google-java-format-diff.py - google-java-format Diff Reformatter -----===#
3
+ # ===- google-java-format-diff.py - google-java-format Diff Reformatter -----===#
4
4
#
5
5
# The LLVM Compiler Infrastructure
6
6
#
7
7
# This file is distributed under the University of Illinois Open Source
8
8
# License. See LICENSE.TXT for details.
9
9
#
10
- #===------------------------------------------------------------------------===#
10
+ # ===------------------------------------------------------------------------===#
11
11
12
12
"""
13
13
google-java-format Diff Reformatter
@@ -75,7 +75,7 @@ def main():
75
75
lines_by_file = {}
76
76
77
77
for line in sys .stdin :
78
- match = re .search ('^\+\+\+\ (.*?/){%s}(\S*)' % args .p , line )
78
+ match = re .search (r '^\+\+\+\ (.*?/){%s}(\S*)' % args .p , line )
79
79
if match :
80
80
filename = match .group (2 )
81
81
if filename == None :
@@ -88,7 +88,7 @@ def main():
88
88
if not re .match ('^%s$' % args .iregex , filename , re .IGNORECASE ):
89
89
continue
90
90
91
- match = re .search ('^@@.*\+(\d+)(,(\d+))?' , line )
91
+ match = re .search (r '^@@.*\+(\d+)(,(\d+))?' , line )
92
92
if match :
93
93
start_line = int (match .group (1 ))
94
94
line_count = 1
You can’t perform that action at this time.
0 commit comments