Removed, old file.

This commit is contained in:
Jeremy Fincher 2003-09-24 05:11:24 +00:00
parent 1c86e6f40c
commit f08bc708b2
2 changed files with 0 additions and 52 deletions

View File

@ -1,18 +0,0 @@
#!/usr/bin/env python
from fix import *
import drivers
import twisted.protocols
class TwistedDriver(drivers.IrcDriver, twisted.protocols.basic.LineReceiver):
def __init__(self, name, irc, (server, port), reconnect=True):
drivers.IrcDriver.__init__(self, name)
self.name = name
self.server = (server, port)
self.reconnect = reconnect
self.irc = irc
irc.driver = irc
self.delimiter = '\n'
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -1,34 +0,0 @@
#!/usr/bin/env python
"""
Converts from a "key => value\n" format to a cdb database.
"""
import sys
if 'src' not in sys.path:
sys.path.insert(0, 'src')
import re
import cdb
r = re.compile(r'(.*)\s+=>\s+(.*)\n')
if __name__ == '__main__':
if len(sys.argv) < 2:
print 'Usage: %s <dbname> (reads stdin for data)' % sys.argv[0]
sys.exit(-1)
maker = cdb.Maker(sys.argv[1])
lineno = 1
for line in sys.stdin:
m = r.match(line)
if m:
(key, value) = m.groups()
maker.add(key, value)
lineno += 1
else:
print 'Invalid Syntax, line %s' % lineno
maker.finish()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: