mirror of https://github.com/tLDP/python-tldp
removing unused sys; shortening logger lines
This commit is contained in:
parent
4d0c6f1f1f
commit
ecf2bee8a6
|
@ -3,7 +3,6 @@
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import operator
|
import operator
|
||||||
|
|
||||||
from .utils import logger
|
from .utils import logger
|
||||||
|
@ -26,9 +25,9 @@ class Sources(object):
|
||||||
def validateDirs(self):
|
def validateDirs(self):
|
||||||
results = [os.path.exists(x) for x in self.sourcedirs]
|
results = [os.path.exists(x) for x in self.sourcedirs]
|
||||||
if not all(results):
|
if not all(results):
|
||||||
for result, sourcedir in zip(results, self.sourcedir):
|
for result, sdir in zip(results, self.sourcedir):
|
||||||
logger.critical("[Errno 2] No such file or directory: " + sourcedir)
|
logger.critical("[Errno 2] No such file or directory: " + sdir)
|
||||||
raise OSError("[Errno 2] No such file or directory: " + sourcedir)
|
raise OSError("[Errno 2] No such file or directory: " + sdir)
|
||||||
|
|
||||||
def enumerateDocuments(self):
|
def enumerateDocuments(self):
|
||||||
for sdir in self.sourcedirs:
|
for sdir in self.sourcedirs:
|
||||||
|
|
Loading…
Reference in New Issue