summaryrefslogtreecommitdiff
path: root/iotop/data.py
diff options
context:
space:
mode:
authorGuillaume Chazarain <guichaz@gmail.com>2009-09-06 15:19:47 +0200
committerGuillaume Chazarain <guichaz@gmail.com>2009-09-06 15:19:47 +0200
commit01a729d66df32955b624949cf1116f99e74574ac (patch)
tree30eb04bed0ef8cfb11ad479e8bb99eeba44e1995 /iotop/data.py
parent4d3a22562c99eb2a672108c45bbe80681c0889fd (diff)
downloadiotop-01a729d66df32955b624949cf1116f99e74574ac.tar.gz
Detect python-2.5 before importing incompatible stuff
Diffstat (limited to 'iotop/data.py')
-rw-r--r--iotop/data.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/iotop/data.py b/iotop/data.py
index ad59ba6..26aa77f 100644
--- a/iotop/data.py
+++ b/iotop/data.py
@@ -9,10 +9,6 @@ import struct
import sys
import time
-from iotop import ioprio, vmstat
-from netlink import Connection, NETLINK_GENERIC, U32Attr, NLM_F_REQUEST
-from genetlink import Controller, GeNlMessage
-
#
# Check for requirements:
# o Python >= 2.5 for AF_NETLINK sockets
@@ -37,6 +33,10 @@ if not python25 or not ioaccounting:
boolean2string(ioaccounting)
sys.exit(1)
+from iotop import ioprio, vmstat
+from netlink import Connection, NETLINK_GENERIC, U32Attr, NLM_F_REQUEST
+from genetlink import Controller, GeNlMessage
+
class DumpableObject(object):
"""Base class for all objects that allows easy introspection when printed"""
def __repr__(self):