summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lbup/_mountinfo.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lbup/_mountinfo.py b/lbup/_mountinfo.py
index 973e135..bbced58 100644
--- a/lbup/_mountinfo.py
+++ b/lbup/_mountinfo.py
@@ -92,6 +92,9 @@ class _MountEntry:
if len(remainder) > 0:
self.super_opts = remainder.pop(0)
+ def __repr__(self):
+ return self.raw_entry.decode('ascii', errors = 'backslashreplace')
+
def __str__(self):
return '({major}:{minor}){src}{root}->{mp}'.format(
major = self.devnum >> 8, minor = self.devnum & 255,