Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
use is_string, checking if a parameter is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed Nov 11, 2015
1 parent 9bcdce9 commit d21bdac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtimetrend/travis.py
Expand Up @@ -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()

Expand Down

0 comments on commit d21bdac

Please sign in to comment.