File mod_python-3.5.0-003-06f994a-cookie_expiration.patch of Package apache2-mod_python

From 15701c59ac1909ec424148c035e9fb04e84711b6 Mon Sep 17 00:00:00 2001
From: Ron Hiller <ron.github@graburn.com>
Date: Wed, 1 Jan 2014 11:12:13 -0500
Subject: [PATCH] Revert to mod_python 3.3.1 semantics where cookie expiration
 is sent to client

Without the "expires" attribute in the _valid_attr list, cookie expirations are never returned by the __str__ method, and consequently are never sent to the browser.
---
 lib/python/mod_python/Cookie.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/python/mod_python/Cookie.py b/lib/python/mod_python/Cookie.py
index 7205722..25ad231 100644
--- a/lib/python/mod_python/Cookie.py
+++ b/lib/python/mod_python/Cookie.py
@@ -59,7 +59,7 @@ def __new__(cls, clsname, bases, clsdict):
 
         _valid_attr = (
             "version", "path", "domain", "secure",
-            "comment", "max_age",
+            "comment", "expires", "max_age",
             # RFC 2965
             "commentURL", "discard", "port",
             # Microsoft Extension