# Mrs
# Copyright 2008-2009 Brigham Young University
#
# This file is part of Mrs.
#
# Mrs is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# Mrs is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# Mrs.  If not, see <http://www.gnu.org/licenses/>.
#
# Inquiries regarding any further use of Mrs, please contact the Copyright
# Licensing Office, Brigham Young University, 3760 HBLL, Provo, UT 84602,
# (801) 422-9339 or 422-3821, e-mail copyright@byu.edu.

# TODO: fix the sample code in the following docstring:
"""Mrs: MapReduce - a Simple implementation

Your Mrs MapReduce program might look something like this:

class Program(mrs.MapReduce):
    def map(key, value):
        yield newkey, newvalue

    def reduce(key, values):
        yield newvalue

if __name__ == '__main__':
    import mrs
    mrs.main(mapper, reducer)
"""

# Set up the default logging configuration.
import logging, sys
logger = logging.getLogger('mrs')
logger.setLevel(logging.WARNING)
handler = logging.StreamHandler(sys.stderr)
format = '%(asctime)s,%(msecs)d: %(levelname)s: %(message)s'
formatter = logging.Formatter(format, '%H:%M:%S')
handler.setFormatter(formatter)
logger.addHandler(handler)

# rather than importing all submodules, we just import the ones that are
# expected to be useful outside of Mrs internals.
import cli, registry, version
from io.hexformat import HexWriter
from io.textformat import TextWriter
from mapreduce import MapReduce

VERSION = version.VERSION
main = cli.main

# We need to set __all__ to make sure that pydoc has everything:
__all__ = ['logger', 'cli', 'HexWriter', 'TextWriter', 'VERSION', 'main',]

# vim: et sw=4 sts=4

@@ -1547,20 +1547,8 @@
 rmat
-, '%25H:%25M:%25S'
 )%0Aha

changed the date format to include the full date