You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/python
|
|
|
|
import sys
|
|
|
|
result = '_nick_names = [\n'
|
|
|
|
nicks_file = open(sys.argv[1], 'r')
|
|
|
|
for line in nicks_file.readlines():
|
|
name = line.strip()
|
|
result += '\'%s\', ' % (name)
|
|
|
|
result += ']'
|
|
|
|
nicks_file.close()
|
|
|
|
print result
|
|
|