SHARE
TWEET

Untitled

a guest May 19th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top