Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 318 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Pan Yang (panyangnlp@gmail.com)
# Copyright 2017
import string
from sys import stdin
printable = set(string.printable)
for line in stdin:
filter_line = filter(lambda x: x not in printable, line).strip()
if filter_line != "":
print filter_line