Skip to content

Commit

Permalink
try #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarman committed Jun 23, 2017
1 parent 555df18 commit 1257525
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/cbapi/defense/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import getpass
import six
if six.PY3:
from io import BytesIO as StringIO
from io import StringIO as StringIO
else:
from cStringIO import StringIO

Expand Down Expand Up @@ -49,7 +49,7 @@ def configure(opts):
token = input("API key: ")

config = RawConfigParser()
config.readfp(StringIO(b'[default]'))
config.readfp(StringIO('[default]'))
config.set("default", "url", url)
config.set("default", "token", "{0}/{1}".format(token, connector_id))
config.set("default", "ssl_verify", ssl_verify)
Expand Down
4 changes: 2 additions & 2 deletions src/cbapi/protection/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import getpass
import six
if six.PY3:
from io import BytesIO as StringIO
from io import StringIO as StringIO
else:
from cStringIO import StringIO

Expand Down Expand Up @@ -56,7 +56,7 @@ def configure(opts):
token = input("API token: ")

config = RawConfigParser()
config.readfp(StringIO(b'[default]'))
config.readfp(StringIO('[default]'))
config.set("default", "url", url)
config.set("default", "token", token)
config.set("default", "ssl_verify", ssl_verify)
Expand Down
4 changes: 2 additions & 2 deletions src/cbapi/response/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import getpass
import six
if six.PY3:
from io import BytesIO as StringIO
from io import StringIO as StringIO
else:
from cStringIO import StringIO

Expand Down Expand Up @@ -70,7 +70,7 @@ def configure(opts):
return 1

config = RawConfigParser()
config.readfp(StringIO(b'[default]'))
config.readfp(StringIO('[default]'))
config.set("default", "url", url)
config.set("default", "token", token)
config.set("default", "ssl_verify", ssl_verify)
Expand Down

0 comments on commit 1257525

Please sign in to comment.