Skip to content

Commit 555df18

Browse files
committed
fix for python3
1 parent d92f2c5 commit 555df18

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cbapi/defense/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def configure(opts):
4949
token = input("API key: ")
5050

5151
config = RawConfigParser()
52-
config.readfp(StringIO('[default]'))
52+
config.readfp(StringIO(b'[default]'))
5353
config.set("default", "url", url)
5454
config.set("default", "token", "{0}/{1}".format(token, connector_id))
5555
config.set("default", "ssl_verify", ssl_verify)

src/cbapi/protection/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def configure(opts):
5656
token = input("API token: ")
5757

5858
config = RawConfigParser()
59-
config.readfp(StringIO('[default]'))
59+
config.readfp(StringIO(b'[default]'))
6060
config.set("default", "url", url)
6161
config.set("default", "token", token)
6262
config.set("default", "ssl_verify", ssl_verify)

src/cbapi/response/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def configure(opts):
7070
return 1
7171

7272
config = RawConfigParser()
73-
config.readfp(StringIO('[default]'))
73+
config.readfp(StringIO(b'[default]'))
7474
config.set("default", "url", url)
7575
config.set("default", "token", token)
7676
config.set("default", "ssl_verify", ssl_verify)

0 commit comments

Comments
 (0)