From 8c9626f0a919af4240e9a21e1b5f3bcb4723f1a4 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 12 Feb 2019 11:08:24 +0000 Subject: Put an strf format for ISO8601 in utils --- modules/github/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/github/__init__.py') diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 9a9e97a7..0e0d2b73 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -1,7 +1,6 @@ import datetime, itertools, json, math, urllib.parse from src import ModuleManager, utils -_ISO8601 = "%Y-%m-%dT%H:%M:%S%z" FORM_ENCODED = "application/x-www-form-urlencoded" COMMIT_URL = "https://github.com/%s/commit/%s" @@ -381,7 +380,7 @@ class Module(ModuleManager.BaseModule): return url def _iso8601(self, s): - return datetime.datetime.strptime(s, _ISO8601) + return datetime.datetime.strptime(s, utils.ISO8601_FORMAT) def ping(self, data): return ["Received new webhook"] -- cgit v1.3.1-10-gc9f91