Skip to content

Commit 72fb5c3

Browse files
committed
[fdiff.color] add docstring documentation
1 parent 519bd76 commit 72fb5c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/fdiff/color.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919

2020
def color_unified_diff_line(line):
21+
"""Returns an ANSI escape code colored string with color based
22+
on the unified diff line type."""
2123
if line[0:2] == "+ ":
2224
return f"{green_start}{line}{reset}"
2325
elif line[0:2] == "- ":

0 commit comments

Comments
 (0)