Mercurial > hg > validate-yaml
changeset 1:99c252285817 default tip
CamelCase
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 01 Nov 2016 16:09:09 -0700 |
parents | c00f27542710 |
children | |
files | validateyaml/main.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/validateyaml/main.py Tue Nov 01 16:06:13 2016 -0700 +++ b/validateyaml/main.py Tue Nov 01 16:09:09 2016 -0700 @@ -16,7 +16,7 @@ kwargs.setdefault('formatter_class', argparse.RawTextHelpFormatter) kwargs.setdefault('description', __doc__) argparse.ArgumentParser.__init__(self, **kwargs) - self.add_argument('yaml_file', type=argparse.filetype('r')) + self.add_argument('yaml_file', type=argparse.FileType('r')) self.options = None def parse_args(self, *args, **kw):