mirror of https://github.com/nicolargo/glances.git
Correct issue with non existing PermissionError in Python 2
This commit is contained in:
parent
a244cd3dfc
commit
834b2412cf
|
|
@ -139,6 +139,8 @@ else:
|
|||
bool_type = types.BooleanType
|
||||
long = long
|
||||
|
||||
PermissionError = OSError
|
||||
|
||||
viewkeys = operator.methodcaller('viewkeys')
|
||||
viewvalues = operator.methodcaller('viewvalues')
|
||||
viewitems = operator.methodcaller('viewitems')
|
||||
|
|
|
|||
Loading…
Reference in New Issue