docs: show full context of diff

This commit is contained in:
Daylin Morgan 2023-08-21 12:21:35 -05:00
parent 0392c6f0e7
commit 0e12692b71
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -22,7 +22,11 @@ print(
Syntax( Syntax(
"\n".join( "\n".join(
unified_diff( unified_diff(
old_sys_path, sys.path, "pre-viv sys.path", "post-viv sys.path" old_sys_path,
sys.path,
"pre-viv sys.path",
"post-viv sys.path",
n=max(map(len, (old_sys_path, sys.path))),
) )
), ),
"diff", "diff",