← Back to team overview

dulwich-users team mailing list archive

[PATCH 3/8] Correct PSF copyright on web.date_time_string.

 

From: Dave Borowitz <dborowitz@xxxxxxxxxx>

Change-Id: I664f0f3ad0f003af6200521164559681c047a0b4
---
 dulwich/web.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dulwich/web.py b/dulwich/web.py
index 76c1dac..0559e12 100644
--- a/dulwich/web.py
+++ b/dulwich/web.py
@@ -52,7 +52,12 @@ HTTP_ERROR = '500 Internal Server Error'
 
 
 def date_time_string(timestamp=None):
-    # Based on BaseHTTPServer.py in python2.5
+    # From BaseHTTPRequestHandler.date_time_string in BaseHTTPServer.py in the
+    # Python 2.6.5 standard library, following modifications:
+    #  - Made a global rather than an instance method.
+    #  - weekdayname and monthname are renamed and locals rather than class
+    #    variables.
+    # Copyright (c) 2001-2010 Python Software Foundation; All Rights Reserved
     weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     months = [None,
               'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
-- 
1.7.1




References