diff options
| author | 2019-02-12 11:08:24 +0000 | |
|---|---|---|
| committer | 2019-02-12 11:08:24 +0000 | |
| commit | 8c9626f0a919af4240e9a21e1b5f3bcb4723f1a4 (patch) | |
| tree | c36a8cee28662485b5b1a09241f50ab9f8e0e8d1 /modules/github | |
| parent | Insert `label` tag to lines in labeled BATCHes (line_handler.py) (diff) | |
| signature | ||
Put an strf format for ISO8601 in utils
Diffstat (limited to 'modules/github')
| -rw-r--r-- | modules/github/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
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"] |
