diff --git a/mercurial/patch.py b/mercurial/patch.py