utils/gimicq-import/GimICQ2IM.py
def extract(line):
	"""Return a tuple (uin, nick) from 'O11111111	nickname'"""
	
	line = line.replace("\n", "")

	uin = line[1:line.find("\t")]
	
	# fix uin
	uin2 = ""
	for c in uin:
		if c.isdigit():
			uin2 += c
	uin = uin2
	
	nick = line[1+line.find("\t"):]
	nick = nick.replace("/", "_")
	nick = nick.replace(":", "_")
	return (uin, nick)
Return a tuple (uin, nick) from 'O11111111	nickname
Return a tuple (uin, nick) from 'O11111111      nickname
Return a tuple ( uin nick ) from ' O11111111 nickname
def extract(line):
	line = line.replace("\n", "")
	uin = line[1:line.find("\t")]
	uin2 = ""
	for c in uin:
		if c.isdigit():
			uin2 += c
	uin = uin2
	nick = line[1+line.find("\t"):]
	nick = nick.replace("/", "_")
	nick = nick.replace(":", "_")
	return (uin, nick)
def extract ( line ) : line = line . replace ( "\n" , "" ) uin = line [ 1 : line . find ( "\t" ) ] uin2 = "" for c in uin : if c . isdigit ( ) : uin2 += c uin = uin2 nick = line [ 1 + line . find ( "\t" ) : ] nick = nick . replace ( "/" , "_" ) nick = nick . replace ( ":" , "_" ) return ( uin , nick )
Return a tuple (uin, nick) from 'O11111111      nickname
Return a tuple ( uin nick ) from ' O11111111 nickname
"""Return a tuple (uin, nick) from 'O11111111	nickname'""" # fix uin
line