Spaces and import fix.

This commit is contained in:
Alexis Bienvenüe 2016-05-02 10:05:25 +02:00
parent 6509130ff2
commit ae0a7a63c2
3 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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])

View File

@ -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