Skip to content

Commit

Permalink
Py3.12 bug (#13)
Browse files Browse the repository at this point in the history
* changed config.readfp to config.read_file
* amended version
  • Loading branch information
MikeSchiessl authored Oct 11, 2023
1 parent e6be6cd commit 67c55b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/akamai-etp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ from requests.compat import urljoin
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from config import EdgeGridConfig

__version__ = "0.4.3"
__version__ = "0.4.5"

#: Window span in ad-hoc mode, default is 3 min
span_duration_min = 3
Expand Down
2 changes: 1 addition & 1 deletion bin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __init__(self, config_values, configuration, flags=None):

if os.path.isfile(arguments["edgerc"]):
config = ConfigParser()
config.readfp(open(arguments["edgerc"]))
config.read_file(open(arguments["edgerc"]))
if not config.has_section(configuration):
err_msg = "ERROR: No section named %s was found in your %s file\n" % \
(configuration, arguments["edgerc"])
Expand Down
2 changes: 1 addition & 1 deletion cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"commands": [
{
"name": "etp",
"version": "0.4.4",
"version": "0.4.5",
"description": "Akamai CLI for Secure Internet Access Enterprise (f.k.a. Enterprise Threat Protector)"
}
]
Expand Down

0 comments on commit 67c55b8

Please sign in to comment.