Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import division, print_function
- from os.path import expanduser
- real_file = expanduser('~/.xchat2/xchatlogs/FreeNode-##python-friendly.log')
- with open(real_file, 'r') as f:
- for line in f:
- if not ((line == '\n') or \
- line.startswith('**** ') or \
- (line[15:18] == ' *\t') \
- ):
- print(line, end = '')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement