Skip to content

Commit

Permalink
Type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Nov 10, 2020
1 parent cbc87c2 commit 1c51271
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions greensms/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from greensms.utils.url import base_url
from greensms.http.rest import HttpClient
from greensms.api.module_loader import ModuleLoader
import types


class GreenSMS(object):
Expand Down Expand Up @@ -31,9 +30,9 @@ def __init__(self, user=None, password=None, token=None, version=None, camel_cas
self.password = password or environment.get('GREENSMS_PASS')
self.version = version
self.use_camel_case = camel_case_response if isinstance(
camel_case_response, types.BooleanType) else False
camel_case_response, bool) else False
self.use_token_for_requests = use_token_for_requests if isinstance(
use_token_for_requests, types.BooleanType) else False
use_token_for_requests, bool) else False

if self.token is not None:
self.user = None
Expand Down

0 comments on commit 1c51271

Please sign in to comment.