Skip to content

Commit

Permalink
flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mgalloy committed Apr 23, 2019
1 parent fb4144c commit 5fa6374
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions epochs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,17 @@ def is_valid(self, allow_extra_options: bool=False) -> bool:
if not allow_extra_options:
for s in self.sections():
for o in self.options(s):
if self.has_option('DEFAULT', o): continue
if self.has_option('DEFAULT', o):
continue
if not self.specification.has_option(s, o):
print(f'section={s}, option={o}')
return False

# check that all options without a default value are given by f
for s in self.specification.sections():
for o in self.specification.options(s):
if self.specification.has_option('DEFAULT', o): continue
if self.specification.has_option('DEFAULT', o):
continue
specline = self.specification.get(s, o)
spec = _parse_specline(specline)
if spec.required and not self.has_option(s, o):
Expand Down Expand Up @@ -368,7 +370,7 @@ def _parse_datetime(self, d: DateValue) -> datetime.datetime:
def formats(self):
return self._formats

@date.setter
@formats.setter
def formats(self, formats: List[str]):
'''
Parameters
Expand Down

0 comments on commit 5fa6374

Please sign in to comment.