dbt-selly/dbt-env/lib/python3.8/site-packages/pytimeparse/__init__.py

29 lines
730 B
Python
Raw Normal View History

2022-03-22 15:13:27 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
__init__.py
(c) Will Roberts <wildwilhelm@gmail.com> 1 February, 2014
`timeparse` module.
'''
from __future__ import absolute_import
from codecs import open
from os import path
# Version. For each new release, the version number should be updated
# in the file VERSION.
try:
# If a VERSION file exists, use it!
with open(path.join(path.dirname(__file__), 'VERSION'),
encoding='utf-8') as infile:
__version__ = infile.read().strip()
except NameError:
__version__ = 'unknown (running code interactively?)'
except IOError as ex:
__version__ = "unknown (%s)" % ex
# import top-level functionality
from .timeparse import timeparse as parse