From e79900b4651bce48693f27129941374c87843af2 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 30 Jan 2015 22:29:33 +0200 Subject: [PATCH 1/2] Print current year automatically. --- docs/source/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index cbda99f2..57da1082 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -2,7 +2,10 @@ # # Gunicorn documentation build configuration file # -import sys, os + +import os +import sys +import time DOCS_DIR = os.path.abspath(os.path.dirname(__file__)) @@ -19,7 +22,7 @@ master_doc = 'index' # General information about the project. project = u'Gunicorn' -copyright = u'2009-2015, Benoit Chesneau' +copyright = u'2009-%s, Benoit Chesneau' % time.strftime('%Y') # gunicorn version import gunicorn release = version = gunicorn.__version__ From f22267a1bed6520a1531f33b30130da556dd1348 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 30 Jan 2015 22:30:56 +0200 Subject: [PATCH 2/2] Fix gunicorn.http.__all__. All parameters should be a str type. --- gunicorn/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/__init__.py b/gunicorn/http/__init__.py index dc7bacd6..1da6f3ec 100644 --- a/gunicorn/http/__init__.py +++ b/gunicorn/http/__init__.py @@ -6,4 +6,4 @@ from gunicorn.http.message import Message, Request from gunicorn.http.parser import RequestParser -__all__ = [Message, Request, RequestParser] +__all__ = ['Message', 'Request', 'RequestParser']