summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-12 19:17:56 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-12 20:02:13 +0200
commitfe9b6335b4876cb8f02a306199ed13e787e2b1f4 (patch)
tree4ecb1b2d9f46bf24e0ccb781b1e4f45831ce6a50 /bin/reproducible_common.py
parentb7198e0e12e5a3a89932f74752640c817cbdf923 (diff)
downloadjenkins.debian.net-fe9b6335b4876cb8f02a306199ed13e787e2b1f4.tar.xz
reproducible: *.py: from datetime import datetime, timedelta instead of all datetime
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 9a73a2c4..58f60e27 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -17,12 +17,12 @@ import errno
import sqlite3
import logging
import argparse
-import datetime
import psycopg2
import html as HTML
from string import Template
from subprocess import call
from traceback import print_exception
+from datetime import datetime, timedelta
DEBUG = False
QUIET = False
@@ -229,7 +229,7 @@ def _gen_links(suite, arch):
def write_html_page(title, body, destfile, suite=defaultsuite, arch=defaultarch, noheader=False, style_note=False, noendpage=False):
- now = datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M UTC')
+ now = datetime.utcnow().strftime('%Y-%m-%d %H:%M UTC')
html = ''
html += html_header.substitute(page_title=title)
if not noheader: