From 000426c9d890ba2a71625a7454f9c573f10b9bae Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 02:17:30 +0200 Subject: 'from time' -> 'import time' and so on... --- pyload/network/CookieJar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload/network/CookieJar.py') diff --git a/pyload/network/CookieJar.py b/pyload/network/CookieJar.py index a970a08e5..8c8d4c87b 100644 --- a/pyload/network/CookieJar.py +++ b/pyload/network/CookieJar.py @@ -2,9 +2,9 @@ # @author: RaNaN import Cookie +import time from datetime import datetime, timedelta -from time import time # monkey patch for 32 bit systems @@ -30,7 +30,7 @@ class CookieJar(Cookie.SimpleCookie): # Value of expires should be integer if possible # otherwise the cookie won't be used if not exp: - expires = time() + 3600 * 24 * 180 + expires = time.time() + 3600 * 24 * 180 else: try: expires = int(exp) -- cgit v1.2.3