summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2017-03-09 11:40:20 +0200
committerSebastian Thiel <byronimo@gmail.com>2017-04-09 19:59:44 +0200
commit32da7feb496ef31c48b5cbe4e37a4c68ed1b7dd5 (patch)
tree8feb952f64aa97916e2e717b905916713f2d2246 /git/remote.py
parent39335e6242c93d5ba75e7ab8d7926f5a49c119a3 (diff)
downloadgitpython-32da7feb496ef31c48b5cbe4e37a4c68ed1b7dd5.tar.gz
Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py
index e5480d0e..60319ce1 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -208,7 +208,7 @@ class FetchInfo(object):
NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \
FAST_FORWARD, ERROR = [1 << x for x in range(8)]
- re_fetch_result = re.compile('^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
+ re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
_flag_map = {'!': ERROR,
'+': FORCED_UPDATE,
@@ -391,7 +391,7 @@ class Remote(LazyMixin, Iterable):
def __getattr__(self, attr):
"""Allows to call this instance like
- remote.special( \*args, \*\*kwargs) to call git-remote special self.name"""
+ remote.special( \\*args, \\*\\*kwargs) to call git-remote special self.name"""
if attr == "_config_reader":
return super(Remote, self).__getattr__(attr)