Skip to content

Commit

Permalink
Fixed deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros committed Jun 11, 2019
1 parent 477957b commit 2497a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = arduino-simple-rpc
version = 2.0.1
version = 2.0.2
description = Arduino simpleRPC API client library and CLI.
long_description = file: README.rst
author = Jeroen F.J. Laros
Expand Down
3 changes: 2 additions & 1 deletion simple_rpc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@


config = ConfigParser()
config.read_file(open('{}/setup.cfg'.format(dirname(abspath(__file__)))))
with open('{}/setup.cfg'.format(dirname(abspath(__file__)))) as handle:
config.read_file(handle)

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

0 comments on commit 2497a7e

Please sign in to comment.