python-linux-procfs/backport-Fix-import-of-utilist.patch

32 lines
880 B
Diff
Raw Normal View History

2020-09-02 10:50:36 +08:00
From 208b963455fa5ff658b24e513639f27ef66920ce Mon Sep 17 00:00:00 2001
From: John Kacur <jkacur@redhat.com>
Date: Wed, 2 Sep 2020 09:32:30 +0800
Subject: [PATCH] Fix import of utilist
reason:If procfs/utilist.py is not in your PYTHONPATH, the import can fail.
Specify it fully.
Signed-off-by: John Kacur <jkacur@redhat.com>
https://kernel.googlesource.com/pub/scm/libs/python/python-linux-procfs/python-linux-procfs/+/208b963455fa5ff658b24e513639f27ef66920ce%5E%21/
---
procfs/procfs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/procfs/procfs.py b/procfs/procfs.py
index a586ae2..3cfa941 100755
--- a/procfs/procfs.py
+++ b/procfs/procfs.py
@@ -21,7 +21,7 @@
import os, time
from functools import reduce
from six.moves import range
-from utilist import bitmasklist
+from procfs.utilist import bitmasklist
import platform
import re
--
2.19.1