Skip to content

Commit 380331c

Browse files
fix time usage to pass in default time
1 parent e17bc4d commit 380331c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
33

44
import os
5-
import time
5+
from time import strftime
66

77
# Some options are only enabled for the main packaging.python.org deployment builds
88
RTD_BUILD = bool(os.getenv("READTHEDOCS"))
@@ -14,7 +14,7 @@
1414

1515
project = "Python Packaging User Guide"
1616
author = "Python Packaging Authority"
17-
cur_year = time.strfime("%Y")
17+
cur_year = strftime("%Y")
1818
copyright = f"{cur_year}, {author}"
1919

2020
# -- General configuration -------------------------------------------------------------

0 commit comments

Comments
 (0)