Use class attributes as much as possible for application output
refs #803
This commit is contained in:
parent
ee8e7cee3d
commit
c07e23cafc
35 changed files with 228 additions and 260 deletions
|
|
@ -24,7 +24,6 @@ from time import mktime, strptime
|
|||
import tarfile
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import subprocess
|
||||
from copy import copy
|
||||
from contextlib import closing
|
||||
|
|
@ -96,8 +95,8 @@ class WeboobRepos(ReplApplication):
|
|||
with open(index_file, 'r') as fp:
|
||||
r.parse_index(fp)
|
||||
except IOError as e:
|
||||
print >>sys.stderr, 'Unable to open repository: %s' % e
|
||||
print >>sys.stderr, 'Use the "create" command before.'
|
||||
print >>self.stderr, 'Unable to open repository: %s' % e
|
||||
print >>self.stderr, 'Use the "create" command before.'
|
||||
return 1
|
||||
|
||||
r.build_index(source_path, index_file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue