Skip to content

Commit de060c3

Browse files
authored
Merge pull request #1 from axlan/jdiamond/fix-config-parser
Fix deprecated SafeConfigParser usage for Python 3.12.
2 parents 30ccb9f + c06ac96 commit de060c3

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python 3",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
10+
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
// "forwardPorts": [],
13+
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
"postCreateCommand": "pip install -e .",
16+
17+
// Configure tool-specific properties.
18+
"customizations": {
19+
"vscode": {
20+
"extensions": ["ms-python.python"]
21+
}
22+
}
23+
24+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
25+
// "remoteUser": "root"
26+
}

nest/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_config(config_path=None, prog='nest'):
2222

2323
# Note, this cannot accept sections titled 'DEFAULT'
2424
if os.path.exists(config_file):
25-
config = configparser.SafeConfigParser()
25+
config = configparser.ConfigParser()
2626
config.read([config_file])
2727
if config.has_section('nest'):
2828
defaults.update(dict(config.items('nest')))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Bumping Minor means API bugfix or new functionality.
1111
# Bumping Micro means CLI change of any kind unless it is
1212
# significant enough to warrant a minor/major bump.
13-
version = '5.1.1'
13+
version = '5.2.0'
1414

1515

1616
setup(name='python-google-nest',

0 commit comments

Comments
 (0)