Back to index

moin  1.9.0~rc2
Classes | Functions
MoinMoin.script.import.irclog Namespace Reference

Classes

class  IAmRoot
class  PluginScript

Functions

def filename_function
def decodeLinewise

Function Documentation

Definition at line 26 of file irclog.py.

00026 
00027 def decodeLinewise(text):
00028     resultList = []
00029     for line in text.splitlines():
00030         try:
00031             decoded_line = line.decode("utf-8")
00032         except UnicodeDecodeError:
00033             decoded_line = line.decode("iso-8859-1")
00034         resultList.append(decoded_line)
00035     return '\n'.join(resultList)
00036 

Here is the caller graph for this function:

Definition at line 11 of file irclog.py.

00011 
00012 def filename_function(filename):
00013     filename = filename.lstrip('#')
00014     splitted = filename.split('.')
00015     return '/'.join(splitted[0:2])

Here is the caller graph for this function: