summaryrefslogtreecommitdiffstats
path: root/libmount/python/test_mount_tab.py
diff options
context:
space:
mode:
authorKarel Zak2013-08-19 17:10:07 +0200
committerKarel Zak2013-08-19 17:10:07 +0200
commit5c7664f73572b365b9b014c5afdd0a0109e69846 (patch)
tree87fdfae75855d2c912b8b3564ab184e2c6feb468 /libmount/python/test_mount_tab.py
parentpylibmount: coding style changes in tab.c (diff)
downloadkernel-qcow2-util-linux-5c7664f73572b365b9b014c5afdd0a0109e69846.tar.gz
kernel-qcow2-util-linux-5c7664f73572b365b9b014c5afdd0a0109e69846.tar.xz
kernel-qcow2-util-linux-5c7664f73572b365b9b014c5afdd0a0109e69846.zip
pylibmount: cleanup object names
Cxt -> Context Tab -> Table Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/python/test_mount_tab.py')
-rwxr-xr-xlibmount/python/test_mount_tab.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmount/python/test_mount_tab.py b/libmount/python/test_mount_tab.py
index e22f2f86e..33ceb5285 100755
--- a/libmount/python/test_mount_tab.py
+++ b/libmount/python/test_mount_tab.py
@@ -42,7 +42,8 @@ def parser_errcb(tb, fname, line):
def create_table(f, comments):
if not f:
return None
- tb = mnt.Tab()
+
+ tb = mnt.Table()
tb.enable_comments(comments)
tb.errcb = parser_errcb
@@ -140,7 +141,7 @@ def test_is_mounted(ts, argv):
def test_find_mountpoint(ts, argv):
rc = -1
- tb = mnt.Tab("/proc/self/mountinfo")
+ tb = mnt.Table("/proc/self/mountinfo")
if not tb:
return rc
fs = tb.find_mountpoint(argv[1], mnt.MNT_ITER_BACKWARD)