Skip to content

Commit eefb29e

Browse files
authored
cleanup (#45)
1 parent a42c732 commit eefb29e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

html5validator/validator.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def __init__(self,
5454
self.vnu_jar_location = self._cygwin_path_convert(
5555
self.vnu_jar_location)
5656

57-
@property
5857
def _java_options(self):
5958
java_options = []
6059

@@ -63,7 +62,6 @@ def _java_options(self):
6362

6463
return java_options
6564

66-
@property
6765
def _vnu_options(self):
6866
vnu_options = []
6967

@@ -117,8 +115,9 @@ def validate(self, files):
117115
files = [self._cygwin_path_convert(f) for f in files]
118116

119117
try:
120-
cmd = (['java'] + self._java_options +
121-
['-jar', self.vnu_jar_location] + self._vnu_options + files)
118+
cmd = (['java'] + self._java_options() +
119+
['-jar', self.vnu_jar_location] + self._vnu_options() +
120+
files)
122121
LOGGER.debug(cmd)
123122
o = subprocess.check_output(
124123
cmd,
@@ -143,7 +142,7 @@ def validate(self, files):
143142
o = [l for l in o if not regex.search(l)]
144143

145144
if o:
146-
LOGGER.warn('\n'.join(o))
145+
LOGGER.error('\n'.join(o))
147146
else:
148147
LOGGER.info('All good.')
149148

0 commit comments

Comments
 (0)