Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eeprom_base] Close lock file after unlocking (sonic-net#149)
Close EEPROM lock file after unlocking. Python 3 now outputs warnings such as the following to stderr if a file descriptor is left open: ``` /usr/local/bin/decode-syseeprom:171 : ResourceWarning : unclosed file <_io.TextIOWrapper name='/var/run/hw-management/eeprom/vpd_info' mode='r' encoding='UTF-8'> ``` With this change, the above warning is no longer displayed.
- Loading branch information