mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Spaces and import fix.
This commit is contained in:
parent
6509130ff2
commit
ae0a7a63c2
@ -135,6 +135,7 @@ if source_date_epoch is not None:
|
||||
timestamp = float(source_date_epoch)
|
||||
tzdelta = 0
|
||||
|
||||
|
||||
class LocalTimeZone(tzinfo):
|
||||
|
||||
def __init__(self, *args, **kw):
|
||||
|
@ -303,7 +303,7 @@ class Config(object):
|
||||
# correct values of copyright year that are not coherent with
|
||||
# the SOURCE_DATE_EPOCH environment variable:
|
||||
if getenv('SOURCE_DATE_EPOCH') is not None:
|
||||
for k in ('copyright','epub_copyright'):
|
||||
for k in ('copyright', 'epub_copyright'):
|
||||
if k in config:
|
||||
config[k] = copyright_year_re.sub('\g<1>%s' % format_date('%Y'),
|
||||
config[k])
|
||||
|
@ -14,7 +14,6 @@ import os
|
||||
import re
|
||||
import warnings
|
||||
from os import path
|
||||
from time import gmtime
|
||||
from datetime import datetime
|
||||
from collections import namedtuple
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user