summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/find_orphans.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-system/find_orphans.py')
-rw-r--r--abs/core/LinHES-system/find_orphans.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/abs/core/LinHES-system/find_orphans.py b/abs/core/LinHES-system/find_orphans.py
index b1d78de..3c6cc46 100644
--- a/abs/core/LinHES-system/find_orphans.py
+++ b/abs/core/LinHES-system/find_orphans.py
@@ -24,7 +24,7 @@ class File( str ):
self.size = int(size)
def pprint(self):
name = u'%s: %s' % (self.host, os.path.join(self.path, self))
- print u' {0:<90}{1:>8}'.format(name, human_size(self.size))
+ print u' {0:<90}{1:>8}'.format(name, human_size(self.size)).encode('utf-8')
def delete(self):
be = MythBE(self.host, db=DB)
be.deleteFile(self, self.group)
@@ -35,20 +35,20 @@ class MyRecorded( Recorded ):
name = u'{0.hostname}: {0.title}'.format(self)
if self.subtitle:
name += u' - '+self.subtitle
- print u' {0:<70}{1:>28}'.format(name,self.basename)
+ print u' {0:<70}{1:>28}'.format(name,self.basename).encode('utf-8')
def printrecs(title, recs):
print title
for rec in sorted(recs, key=lambda x: x.title):
rec.pprint()
- print u'{0:>88}{1:>12}'.format('Count:',len(recs))
+ print u'{0:>87}{1:>12}'.format('Count:',len(recs)).encode('utf-8')
def printfiles(title, files):
print title
for f in sorted(files, key=lambda x: x.path):
f.pprint()
size = sum([f.size for f in files])
- print u'{0:>88}{1:>12}'.format('Total:',human_size(size))
+ print u'{0:>87}{1:>12}'.format('Total:',human_size(size)).encode('utf-8')
def populate(host=None):
unfiltered = []