Advertisement
Guest User

Untitled

a guest
May 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import feedparser
  4. import sys, os
  5.  
  6. filename = "/tmp/data.txt"
  7.  
  8. TEST = open(filename, "a")
  9. print(TEST.read())
  10.  
  11. --------------------------------
  12. godzilla:~/rssfeed# ./test.py
  13. Traceback (most recent call last):
  14. File "./test.py", line 9, in <module>
  15. print(TEST.read())
  16. IOError: [Errno 9] Bad file descriptor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement