From 1eb4ccbcc9bd11cee27fada5329127c369230127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Sun, 6 Jan 2019 15:44:09 +0100 Subject: [PATCH] Fix 2 DeprecationWarning: invlid escape sequence (#872) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mickaƫl Schoentgen --- fastentrypoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastentrypoints.py b/fastentrypoints.py index 8bdc5dc0..7bddb468 100644 --- a/fastentrypoints.py +++ b/fastentrypoints.py @@ -37,7 +37,7 @@ http://github.com/ninjaaron/fast-entry_points ''' from setuptools.command import easy_install import re -TEMPLATE = '''\ +TEMPLATE = r'''\ # -*- coding: utf-8 -*- # EASY-INSTALL-ENTRY-SCRIPT: '{3}','{4}','{5}' __requires__ = '{3}' @@ -83,7 +83,7 @@ def main(): import shutil import sys dests = sys.argv[1:] or ['.'] - filename = re.sub('\.pyc$', '.py', __file__) + filename = re.sub(r'\.pyc$', '.py', __file__) for dst in dests: shutil.copy(filename, dst)