We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ffa535 commit 04123a1Copy full SHA for 04123a1
lib/Site.py
@@ -1,4 +1,7 @@
1
-from queue import Queue
+try:
2
+ from queue import Queue # python3
3
+except ImportError:
4
+ from Queue import Queue # python2
5
import requests
6
import time
7
from requests import ConnectionError
@@ -73,8 +76,6 @@ def monitor(self):
73
76
if paste.match():
74
77
logging.info('Found interesting stuff')
75
78
self.redisc.set(paste.url, paste.text)
- print(paste.text)
- # TODO: dump in db
79
self.update()
80
while self.empty():
81
logging.debug('No results... sleeping')
0 commit comments