Skip to content

Commit

Permalink
change os.errno to errno (#87)
Browse files Browse the repository at this point in the history
fixes #86
  • Loading branch information
jamesjuett committed Jul 7, 2021
1 parent 81fbe36 commit be544f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html5validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from __future__ import unicode_literals

import errno
import fnmatch
import logging
import os
Expand Down Expand Up @@ -151,7 +152,7 @@ def run_vnu(self, arguments):
)
stdout, stderr = p.communicate()
except OSError as e:
if e.errno == os.errno.ENOENT:
if e.errno == errno.ENOENT:
raise JavaNotFoundException()
else:
raise
Expand Down

0 comments on commit be544f0

Please sign in to comment.