2
0
Эх сурвалжийг харах

Avoid creating a new list() during annotate.

Jelmer Vernooij 8 жил өмнө
parent
commit
52a1c9b370
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      dulwich/annotate.py

+ 1 - 1
dulwich/annotate.py

@@ -88,5 +88,5 @@ def annotate_lines(store, commit_id, path, order=ORDER_DATE, lines=None, follow=
 
     lines = []
     for (commit, entry) in reversed(revs):
-        lines = list(update_lines(lines, (commit, entry), store[entry.sha]))
+        lines = update_lines(lines, (commit, entry), store[entry.sha])
     return lines