summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/grep.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/subcmds/grep.py b/subcmds/grep.py
index 4f714271..1cb5650b 100644
--- a/subcmds/grep.py
+++ b/subcmds/grep.py
@@ -204,7 +204,7 @@ contain a line that matches both expressions:
204 else: 204 else:
205 out.project('--- project %s ---' % project.relpath) 205 out.project('--- project %s ---' % project.relpath)
206 out.nl() 206 out.nl()
207 out.write(p.stderr) 207 out.write("%s", p.stderr)
208 out.nl() 208 out.nl()
209 continue 209 continue
210 have_match = True 210 have_match = True
@@ -217,17 +217,17 @@ contain a line that matches both expressions:
217 if have_rev and full_name: 217 if have_rev and full_name:
218 for line in r: 218 for line in r:
219 rev, line = line.split(':', 1) 219 rev, line = line.split(':', 1)
220 out.write(rev) 220 out.write("%s", rev)
221 out.write(':') 221 out.write(':')
222 out.project(project.relpath) 222 out.project(project.relpath)
223 out.write('/') 223 out.write('/')
224 out.write(line) 224 out.write("%s", line)
225 out.nl() 225 out.nl()
226 elif full_name: 226 elif full_name:
227 for line in r: 227 for line in r:
228 out.project(project.relpath) 228 out.project(project.relpath)
229 out.write('/') 229 out.write('/')
230 out.write(line) 230 out.write("%s", line)
231 out.nl() 231 out.nl()
232 else: 232 else:
233 for line in r: 233 for line in r: