# HG changeset patch # User Jeff Hammel # Date 1332128363 25200 # Node ID 1981f44ca250c789ae5ec6c5ae7e07c32f1da350 # Parent c8c2d98afc985ac825d97259ff5351d243fafe23 remove unneeded files diff -r c8c2d98afc98 -r 1981f44ca250 lockedfile/main.py --- a/lockedfile/main.py Sun Mar 18 20:37:19 2012 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#!/usr/bin/env python - -""" -locked file implementation -""" - -import sys -import optparse - -def main(args=sys.argv[:]): - - # parse command line options - usage = '%prog [options]' - class PlainDescriptionFormatter(optparse.IndentedHelpFormatter): - """description formatter for console script entry point""" - def format_description(self, description): - if description: - return description + '\n' - else: - return '' - parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter()) - options, args = parser.parse_args(args) - -if __name__ == '__main__': - main() - diff -r c8c2d98afc98 -r 1981f44ca250 lockedfile/template.py --- a/lockedfile/template.py Sun Mar 18 20:37:19 2012 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -""" -lockedfile template for makeitso -""" - -import sys -from cli import MakeItSoCLI -from optparse import OptionParser -from template import MakeItSoTemplate - -class lockedfileTemplate(MakeItSoTemplate): - """ - lockedfile template - """ - name = 'lockedfile' - templates = ['template'] - look = True - -class TemplateCLI(MakeItSoCLI): - """ - CLI driver for the lockedfile template - """ - -def main(args=sys.argv[:]): - cli = TemplateCLI() - cli(*args) - -if __name__ == '__main__': - main() - - diff -r c8c2d98afc98 -r 1981f44ca250 lockedfile/web.py --- a/lockedfile/web.py Sun Mar 18 20:37:19 2012 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#!/usr/bin/env python - -""" -web handler for lockedfile -""" - -from webob import Request, Response, exc - -class Handler(object): - - def __init__(self, **kw): - pass - - def __call__(self, environ, start_response): - request = Request(environ) - response = Response(content_type='text/plain', - body="lockedfile") - return response(environ, start_response) - -if __name__ == '__main__': - from wsgiref import simple_server - app = Handler() - server = simple_server.make_server(host='0.0.0.0', port=8080, app=app) - server.serve_forever() - -