Skip to content

Commit d978f93

Browse files
author
Alexis Bienvenüe
committed
Bugfix: copyright_year_re is a string pattern
1 parent ae0a7a6 commit d978f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from sphinx.util.i18n import format_date
2323

2424
nonascii_re = re.compile(br'[\x80-\xff]')
25-
copyright_year_re = re.compile(br'^((\d{4}-)?)(\d{4})(?=[ ,])')
25+
copyright_year_re = re.compile(r'^((\d{4}-)?)(\d{4})(?=[ ,])')
2626

2727
CONFIG_SYNTAX_ERROR = "There is a syntax error in your configuration file: %s"
2828
if PY3:

0 commit comments

Comments
 (0)