mdiff: turn the comment above _unidiff into a docstring
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 09 Jan 2017 09:34:39 +0100
changeset 31278 4fba214708ee
parent 31277 881ed6a4cf87
child 31279 5e7fd3a0b17f
mdiff: turn the comment above _unidiff into a docstring
mercurial/mdiff.py
--- a/mercurial/mdiff.py	Tue Sep 27 20:27:35 2016 +0200
+++ b/mercurial/mdiff.py	Mon Jan 09 09:34:39 2017 +0100
@@ -253,9 +253,8 @@
 
     return "".join(l)
 
-# creates a headerless unified diff
-# t1 and t2 are the text to be diffed
 def _unidiff(t1, t2, opts=defaultopts):
+    """Yield hunks of a headerless unified diff from t1 and t2 texts."""
     l1 = splitnewlines(t1)
     l2 = splitnewlines(t2)
     def contextend(l, len):