changeset 31268:4fba214708ee

mdiff: turn the comment above _unidiff into a docstring
author Denis Laxalde <denis.laxalde@logilab.fr>
date Mon, 09 Jan 2017 09:34:39 +0100
parents 881ed6a4cf87
children 5e7fd3a0b17f
files mercurial/mdiff.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):