Skip to content

Commit

Permalink
Ran futurize stage 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonrclarke committed Jan 9, 2020
1 parent 564af2b commit addc9b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hepdata_validator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,20 @@
# as an Intergovernmental Organization or submit itself to any jurisdiction.

from __future__ import print_function
from builtins import object
import abc

from .version import __version__
from future.utils import with_metaclass

__all__ = ('__version__', )

class Validator(object):
class Validator(with_metaclass(abc.ABCMeta, object)):
"""
Provides a general 'interface' for Validator in HEPdata
which validates schema files created with the
JSONschema syntax http://json-schema.org/
"""
__metaclass__ = abc.ABCMeta

messages = {}
default_schema_file = ''
Expand Down
1 change: 1 addition & 0 deletions hepdata_validator/data_file_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.

from builtins import str
import json

import os
Expand Down
1 change: 1 addition & 0 deletions hepdata_validator/submission_file_validator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from builtins import str
import json
from jsonschema import validate, ValidationError
import os
Expand Down

0 comments on commit addc9b7

Please sign in to comment.