Skip to content

Commit 2497a7e

Browse files
committed
Fixed deprecation warning.
1 parent 477957b commit 2497a7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = arduino-simple-rpc
3-
version = 2.0.1
3+
version = 2.0.2
44
description = Arduino simpleRPC API client library and CLI.
55
long_description = file: README.rst
66
author = Jeroen F.J. Laros

simple_rpc/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77

88
config = ConfigParser()
9-
config.read_file(open('{}/setup.cfg'.format(dirname(abspath(__file__)))))
9+
with open('{}/setup.cfg'.format(dirname(abspath(__file__)))) as handle:
10+
config.read_file(handle)
1011

1112
_copyright_notice = 'Copyright (c) {} {} <{}>'.format(
1213
config.get('metadata', 'copyright'),

0 commit comments

Comments
 (0)