From d21bdac07cb971bc916506960c39086604c30964 Mon Sep 17 00:00:00 2001 From: Dieter Adriaenssens Date: Wed, 11 Nov 2015 14:38:35 +0100 Subject: [PATCH] use is_string, checking if a parameter is a string --- buildtimetrend/travis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtimetrend/travis.py b/buildtimetrend/travis.py index 1f3aa85..de390a2 100644 --- a/buildtimetrend/travis.py +++ b/buildtimetrend/travis.py @@ -283,7 +283,7 @@ def check_authorization(repo, auth_header): return True # check if parameters are strings - if type(repo) is str and type(auth_header) is str and type(token) is str: + if is_string(repo) and is_string(auth_header) and is_string(token): # generate hash and compare with Authorization header auth_hash = sha256(repo + token).hexdigest()