Added vim:set ... : strings to source in order to keep file formatting

consistent between developers. Jeremy should be adding the equivalent
settings for emacs soon.
This commit is contained in:
James Vega 2003-03-24 08:41:19 +00:00
parent bbe6cbc05d
commit c803e5e9d8
66 changed files with 66 additions and 13 deletions

View File

@ -3970,3 +3970,4 @@ class SOAPServer(SocketServer.TCPServer):
def registerKWFunction(self, function, namespace = '', funcName = None):
self.registerFunction(MethodSig(function,keywords=1), namespace,
funcName)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -272,3 +272,4 @@ def searchByListMania(listManiaID, type="heavy", page=1, license_key=None, http_
def searchSimilar(ASIN, type="heavy", page=1, license_key=None, http_proxy=None):
return search("SimilaritySearch", ASIN, None, type, page, license_key, http_proxy)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -291,3 +291,4 @@ def find_prefix_at_end (haystack, needle):
result = nl-i
break
return result
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -549,3 +549,4 @@ if os.name == 'posix':
self._fileno = fd
self.socket = file_wrapper (fd)
self.add_channel()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -280,3 +280,4 @@ def enable(display=1, logdir=None, context=5, format="html"):
tracebacks to be written to files there."""
sys.excepthook = Hook(display=display, logdir=logdir,
context=context, format=format)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -430,3 +430,4 @@ def main(argv):
if __name__ == '__main__':
main(sys.argv[1:])
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -210,3 +210,4 @@ if __name__ == '__main__':
print "Token: " + repr(tt)
else:
break
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -720,3 +720,4 @@ main = TestProgram
if __name__ == "__main__":
main(module=None)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -1112,3 +1112,4 @@ if __name__ == "__main__":
print "read %d bytes" % len(buf)
print
time.sleep(0.1)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -106,3 +106,4 @@ class BadWords(callbacks.Privmsg):
Class = BadWords
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -151,3 +151,4 @@ class ChannelLogger(irclib.IrcCallback):
Class = ChannelLogger
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -77,4 +77,4 @@ class ChannelStats(callbacks.Privmsg, DBHandler):
Class = ChannelStats
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -72,3 +72,4 @@ class Ctcp(callbacks.PrivmsgRegexp):
irc.queueMsg(notice(msg.nick, s))
Class = Ctcp
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -210,3 +210,4 @@ class Factoids(DBHandler, callbacks.Privmsg):
Class = Factoids
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -53,3 +53,4 @@ class FixRelayBot(irclib.IrcCallback):
Class = FixRelayBot
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -93,3 +93,4 @@ class Forums(callbacks.PrivmsgRegexp):
Class = Forums
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -217,3 +217,4 @@ Class = FreeBSD
if __name__ == '__main__':
makeDb(dbFile, getIndex(), replace=True)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -367,3 +367,4 @@ class FunCommands(callbacks.Privmsg):
Class = FunCommands
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -297,4 +297,4 @@ if __name__ == '__main__':
db.commit()
db.close()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -210,3 +210,4 @@ class Http(callbacks.Privmsg):
Class = Http
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -208,3 +208,4 @@ class Moobot(callbacks.Privmsg):
Class = Moobot
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -78,3 +78,4 @@ class NickServ(callbacks.Privmsg):
Class = NickServ
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -70,3 +70,4 @@ class Parter(callbacks.Privmsg):
Class = Parter
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -167,3 +167,4 @@ class Quotes(DBHandler, callbacks.Privmsg):
Class = Quotes
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -53,3 +53,4 @@ class RawLogger(irclib.IrcCallback):
Class = RawLogger
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -39,3 +39,4 @@ class Relay(callbacks.Privmsg):
def relayconnect(self, irc, msg, args):
"<domain:port> (port defaults to 6667)"
pass
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -50,3 +50,4 @@ class RootWarner(irclib.IrcCallback):
Class = RootWarner
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -60,3 +60,4 @@ class ThreadedFunCommands(callbacks.Privmsg):
Class = ThreadedFunCommands
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -100,3 +100,4 @@ class Topic(callbacks.Privmsg):
Class = Topic
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -87,3 +87,4 @@ class Unix(callbacks.Privmsg):
Class = Unix
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -46,3 +46,4 @@ class Utils(callbacks.Privmsg):
irc.reply(msg, first+second)
Class = Utils
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -43,3 +43,4 @@ class DBHandler(object):
def die(self):
for db in self.dbCache.itervalues():
db.close()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -31,4 +31,4 @@
from baseplugin import *
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -115,3 +115,4 @@ Class = Debian
if __name__ == '__main__':
makeDb(dbFile, getIndex(), replace=True)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -124,3 +124,4 @@ if __name__ == '__main__':
for line in sys.stdin:
db.add(line.translate(trans, '\n'))
db.flush()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -16,3 +16,4 @@ if __name__ == '__main__':
total += len(msg.prefix)
lines += 1
print total / lines
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -58,3 +58,4 @@ if __name__ == '__main__':
start = time.time()
makeContentsDb(sys.argv[1])
print 'Took %s seconds.' % time.time() - start
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -45,3 +45,4 @@ class Friendly(callbacks.PrivmsgRegexp):
"(?:good)?bye|adios|vale|ciao|au revoir|seeya|night"
if re.search(irc.nick, msg.args[1]):
self.reply('vale, amic(e|a)!')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -58,3 +58,4 @@ for line in sys.stdin:
print """INSERT INTO words VALUES (NULL, '%s', (SELECT id FROM sorted_words WHERE word='%s'));""" % (word, sorted)
print """END TRANSACTION;"""
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -46,4 +46,4 @@ def Rbot(callbacks.Privmsg):
if target in ('me', 'yourself', 'himself', irc.nick):
target = msg.nick
#'%s %s %s'
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -15,4 +15,4 @@ class TwistedDriver(drivers.IrcDriver, twisted.protocols.basic.LineReceiver):
self.irc = irc
irc.driver = irc
self.delimiter = '\n'
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -32,3 +32,4 @@ class UsersHandler(xml.sax.handler.ContentHandler):
self.name = ''
self.u = None
self.chars = ''
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -15,3 +15,4 @@ if __name__ == '__main__':
for name in os.listdir('conf'):
os.remove(os.path.join('conf', name))
os.path.walk(os.curdir, removeFiles, None)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -15,4 +15,4 @@ if __name__ == '__main__':
key = db.nextkey(key)
db.close()
fd.close()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -21,3 +21,4 @@ if __name__ == '__main__':
print 'Invalid line: %s' % line.strip()
db.close()
fd.close()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -9,3 +9,4 @@ if len(sys.argv) < 2:
sys.exit(-1)
shutil.copy('plugins/template.py', 'plugins/%s.py' % sys.argv[1])
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -32,4 +32,4 @@ if __name__ == '__main__':
x.x = 0
os.path.walk(dir, visit, x)
print '%s bytes removed.' % x.x
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -110,3 +110,4 @@ WHITEBG = '\033[47m'
#def clrtoeol():
# 'Clears screen to end of line'
# print '\033[K'
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -235,3 +235,4 @@ if conf.telnetEnable and __name__ != '__main__':
if __name__ == '__main__':
ReplListener()
asyncore.loop()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -149,3 +149,4 @@ def main():
if __name__ == '__main__':
main()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -394,3 +394,4 @@ class PrivmsgRegexp(Privmsg):
if msg:
irc = IrcObjectProxyRegexp(irc)
self.callCommand(method, (irc, msg, m))
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -447,4 +447,4 @@ if __name__ == '__main__':
make(sys.argv[1])
else:
make(sys.argv[1], sys.argv[2])
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -171,3 +171,4 @@ prefixChars = '@'
###############################
###############################
###############################
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -185,3 +185,4 @@ def tracer(frame, event, _):
s = '%s: %s\n' % (frame.f_code.co_filename, frame.f_code.co_name)
_tracefd.write(s)
_tracefd.flush()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -139,3 +139,4 @@ def run():
_drivers[name].die()
del _drivers[name]
_drivers[name] = driver
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -201,4 +201,4 @@ def enumerate(L):
def window(L, size):
for i in xrange(len(L) - (size-1)):
yield L[i:i+size]
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -482,3 +482,4 @@ def checkCapabilities(hostmask, capabilities, requireAll=False):
#################################################
#################################################
startup = False
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -387,3 +387,4 @@ class Irc(object):
for callback in self.callbacks:
callback.die()
world.ircs.remove(self)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -326,3 +326,4 @@ def whois(nick):
def invite(channel, user):
return IrcMsg(command='INVITE', args=(channel, user))
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -189,4 +189,4 @@ class nick(str):
if __name__ == '__main__':
import sys, doctest
doctest.testmod(sys.modules['__main__'])
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -1182,3 +1182,4 @@ standardPrivmsgModules = (OwnerCommands,
ChannelCommands,
UserCommands,
MiscCommands)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -129,3 +129,4 @@ if __name__ == '__main__':
prompt = '>>> '
else:
prompt = '... '
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -85,4 +85,4 @@ removeEvent = schedule.removeEvent
addPeriodicEvent = schedule.addPeriodicEvent
removePeriodicEvent = removeEvent
run = schedule.run
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -194,3 +194,4 @@ def superReload(module):
('func_code', 'func_defaults', 'func_doc'))
return module
'''
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -28,4 +28,4 @@ if __name__ == '__main__':
print 'Invalid Syntax, line %s' % lineno
maker.finish()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -58,4 +58,4 @@ if __name__ == '__main__':
if os.fork() != 0:
sys.exit(0)
asyncore.loop()
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: