From 0e369aff828292ad8ef1ed575ff6d8b4c4d3365c Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Feb 20 2017 10:46:48 +0000 Subject: Python 3.6 invalid escape sequence deprecation fixes Signed-off-by: Ville Skyttä --- diff --git a/doc/fedpkg_man_page.py b/doc/fedpkg_man_page.py index 7b42df3..3c78e8c 100755 --- a/doc/fedpkg_man_page.py +++ b/doc/fedpkg_man_page.py @@ -11,7 +11,7 @@ man_header = """\ .\\" man page for fedpkg .TH fedpkg 1 "%(today)s" "" "RPM packager" .SH "NAME" -fedpkg \- RPM Packaging utility +fedpkg \\- RPM Packaging utility .SH "SYNOPSIS" .B "fedpkg" [ @@ -30,7 +30,7 @@ fedpkg \- RPM Packaging utility .br .B "fedpkg" .I "command" -.B "\-\-help" +.B "\\-\\-help" .SH "DESCRIPTION" .B "fedpkg" is a script to interact with the RPM Packaging system. @@ -38,8 +38,8 @@ is a script to interact with the RPM Packaging system. man_footer = """\ .SH "SEE ALSO" -.UR "https://fedorahosted.org/fedora\-packager/" -.BR "https://fedorahosted.org/fedora\-packager/" +.UR "https://fedorahosted.org/fedora\\-packager/" +.BR "https://fedorahosted.org/fedora\\-packager/" """ @@ -66,7 +66,7 @@ def strip_usage(s): def man_constants(): """Global constants for man file templates""" today = datetime.date.today() - today_manstr = today.strftime('%Y\-%m\-%d') + today_manstr = today.strftime(r'%Y\-%m\-%d') return {'today': today_manstr} diff --git a/fedpkg/__init__.py b/fedpkg/__init__.py index 0345c7c..c81a8d9 100644 --- a/fedpkg/__init__.py +++ b/fedpkg/__init__.py @@ -210,7 +210,7 @@ class Commands(pyrpkg.Commands): # Create a regex to find branches that exactly match f##. Should not # catch branches such as f14-foobar - branchre = 'f\d\d$' + branchre = r'f\d\d$' # Find the repo refs for ref in self.repo.refs: