summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLumir Balhar <lbalhar@redhat.com>2017-11-06 10:18:46 +0100
committerJiri Kastner <jkastner@redhat.com>2017-11-20 13:59:01 +0100
commit6b5d3b7df33ce547bbcc93b2d89843d086490acd (patch)
tree43f255e7e75e55ec7dda8f88183434cc72f94899
parent954ab77701c987736ee84db0dc0c852b4ba50c35 (diff)
downloadpython-linux-procfs-6b5d3b7df33ce547bbcc93b2d89843d086490acd.tar.gz
python3: `reduce()` is moved to `functools` module in Python 3
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
-rwxr-xr-xpflags-cmd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pflags-cmd.py b/pflags-cmd.py
index 9228c68..85b66ad 100755
--- a/pflags-cmd.py
+++ b/pflags-cmd.py
@@ -15,6 +15,7 @@
# General Public License for more details.
import procfs, re, fnmatch, sys
+from functools import reduce
ps = None