Skip to content

Commit

Permalink
Remove unused function: valid_date
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaller authored and Ben Caller committed Jul 24, 2018
1 parent e2ad3b0 commit 11bcd2d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
show_missing = True

exclude_lines =
def valid_date
def __repr__
def __str__
if __name__ == .__main__.:
Expand Down
9 changes: 0 additions & 9 deletions pyt/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@
)


def valid_date(s):
date_format = "%Y-%m-%d"
try:
return datetime.strptime(s, date_format).date()
except ValueError:
msg = "Not a valid date: '{0}'. Format: {1}".format(s, date_format)
raise argparse.ArgumentTypeError(msg)


def _add_required_group(parser):
required_group = parser.add_argument_group('required arguments')
required_group.add_argument(
Expand Down

0 comments on commit 11bcd2d

Please sign in to comment.