Using from_device_file from Devices

The from_device_file method in pyudev.Device is deprecated since
version 0.18
Using the same method from pyudev.Devices is now recommended.

Increasing minimum version of pyudev to 0.18 and correctly handling
exception raised by from_device_file.

Change-Id: I0637585241c81a36f69aef8017f1134f5c526eb1
This commit is contained in:
Riccardo Pittau
2019-07-08 18:42:16 +02:00
parent e33744ac2d
commit 8c9fd6dffc
4 changed files with 10 additions and 28 deletions

View File

@@ -69,7 +69,7 @@ python-dateutil==2.7.0
python-mimeparse==1.6.0
python-subunit==1.2.0
pytz==2018.3
pyudev==0.16.1
pyudev==0.18
PyYAML==3.12
reno==2.5.0
repoze.lru==0.7