Skip to content

Commit

Permalink
Merge pull request #46 from ObjatieGroba/fix_maxsplit
Browse files Browse the repository at this point in the history
Fix maxsplit python2 arg name error
  • Loading branch information
ObjatieGroba committed Jul 1, 2021
2 parents 878e058 + 54e52b2 commit 01a6043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debinterface/interfacesReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _parse_details(self, line):
elif keyword == 'dns-search':
self._adapters[self._context].setDnsSearch(value)
elif keyword.startswith('bridge'):
_, option = keyword.replace('-', '_').split('_', maxsplit=1)
_, option = keyword.replace('-', '_').split('_', 1)
self._adapters[self._context].replaceBropt(option, value)
elif keyword == 'up':
self._adapters[self._context].appendUp(value)
Expand Down

0 comments on commit 01a6043

Please sign in to comment.