diff hgext/rebase.py @ 41547:0f64091cc851

global: make some docstrings raw strings Python 3.8 emits a SyntaxWarning when a str/bytes contains invalid \ escapes. Various docstrings in our code base contain invalid \ escapes. This commit turns those docstrings into raw strings. Differential Revision: https://phab.mercurial-scm.org/D5816
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 04 Feb 2019 09:07:00 -0800
parents 876494fd967d
children 169c386cc9d8
line wrap: on
line diff
--- a/hgext/rebase.py	Mon Feb 04 08:54:30 2019 -0800
+++ b/hgext/rebase.py	Mon Feb 04 09:07:00 2019 -0800
@@ -1278,7 +1278,7 @@
     return stats
 
 def adjustdest(repo, rev, destmap, state, skipped):
-    """adjust rebase destination given the current rebase state
+    r"""adjust rebase destination given the current rebase state
 
     rev is what is being rebased. Return a list of two revs, which are the
     adjusted destinations for rev's p1 and p2, respectively. If a parent is