aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-07-30 08:12:45 +0200
committercedricbonhomme <devnull@localhost>2010-07-30 08:12:45 +0200
commitb30c276dedccbc11645d415610fa528688396dc3 (patch)
tree1da58c857492d3f95ffa7db1371dafebbd1bcf30
parentNumber of unread articles is now displayed in the tab of the browser. (diff)
downloadnewspipe-b30c276dedccbc11645d415610fa528688396dc3.tar.gz
newspipe-b30c276dedccbc11645d415610fa528688396dc3.tar.bz2
newspipe-b30c276dedccbc11645d415610fa528688396dc3.zip
Code improvement. 'pylint --max-line-length=200 pyAggr3g470r.py = 8.41/10'
-rwxr-xr-xpyAggr3g470r.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 4f9795af..cee15f51 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -11,11 +11,8 @@ import os
import time
import sqlite3
import cherrypy
-import operator
import threading
-from cherrypy.lib.static import serve_file
-
import utils
import feedgetter
import PyQRNative
@@ -245,12 +242,12 @@ class Root:
html += "Minimum size of a word: "
html += """<form method=get action="/management/"><select name="word_size">\n"""
- for size in range(1,16):
+ for size in range(1, 16):
if size == int(word_size):
select = " selected='selected'"
else:
select = ""
- html += """\t<option value="%s" %s>%s</option>\n""" % (size, select,size)
+ html += """\t<option value="%s" %s>%s</option>\n""" % (size, select, size)
html += """</select><input type="submit" value="OK"></form>\n"""
html += "<br /><h3>Tag cloud</h3>\n"
html += '<div style="width: 35%; overflow:hidden; text-align: justify">' + \
@@ -805,7 +802,7 @@ class Root:
html += """<div class="left inner">"""
if feed_id in self.feeds.keys():
utils.remove_feed(self.feeds[feed_id][4])
- html+= """<p>All articles from the feed <i>%s</i> are now removed from the base.</p><br />""" % \
+ html += """<p>All articles from the feed <i>%s</i> are now removed from the base.</p><br />""" % \
(self.feeds[feed_id][3].encode('utf-8'),)
else:
return self.error_page("This feed do not exists.")
bgstack15