some pep8 changes (fixed spacing at end)

This commit is contained in:
mdipierro
2012-10-19 10:37:07 -05:00
parent d552eb2eeb
commit b716df1a05
136 changed files with 12 additions and 653 deletions
-8
View File
@@ -257,11 +257,3 @@ def test():
if __name__=='__main__':
test()
-8
View File
@@ -237,11 +237,3 @@ def test():
if __name__=='__main__':
test()
-8
View File
@@ -1,9 +1 @@
-3
View File
@@ -500,6 +500,3 @@ aes_Rcon = array('B',
'c697356ad4b37dfaefc5913972e4d3bd'
'61c29f254a943366cc831d3a74e8cb'.decode('hex')
)
-3
View File
@@ -203,6 +203,3 @@ if __name__=="__main__":
print expand_html(open(sys.argv[1]).read())
else:
print test()
-7
View File
@@ -3905,10 +3905,3 @@ def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, refer
result['version'] = result['version'] or feedparser.version
result['namespaces'] = feedparser.namespacesInUse
return result
-1
View File
@@ -65,4 +65,3 @@ class MemcacheClient(object):
def flush_all(self,*a,**b):
return self.client.delete(*a,**b)
-8
View File
@@ -84,11 +84,3 @@ def autoretry_datastore_timeouts(attempts=5.0, interval=0.1, exponent=2.0):
setattr(wrapper, '_autoretry_datastore_timeouts', False)
if getattr(wrapped, '_autoretry_datastore_timeouts', True):
apiproxy_stub_map.MakeSyncCall = wrapper
-8
View File
@@ -61,11 +61,3 @@ def pdf_from_html(html):
return pdflatex_from_html(html)
else:
return pyfpdf_from_html(html)
-8
View File
@@ -13,11 +13,3 @@ def button(merchant_id="123456789012345",
list_products += t % dict(k=k+1,key=key,value=value)
button = '<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/%s" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" target="_top">%s<input name="_charset_" type="hidden" value="utf-8"/><input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id=%s&amp;w=117&amp;h=48&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/></form>' % (merchant_id, list_products, merchant_id)
return XML(button)
-8
View File
@@ -3,11 +3,3 @@
__all__ = ['DAL','Field','drivers','gae']
from gluon.dal import DAL, Field, Table, Query, Set, Expression, Row, Rows, drivers, BaseAdapter, SQLField, SQLTable, SQLXorable, SQLQuery, SQLSet, SQLRows, SQLStorage, SQLDB, GQLDB, SQLALL, SQLCustomType, gae
-3
View File
@@ -57,6 +57,3 @@ def THUMB(image, nx=120, ny=120, gae=False, name='thumb'):
return thumb
else:
return image
-8
View File
@@ -905,11 +905,3 @@ SQLStorage = DALStorage
if __name__ == '__main__':
import doctest
doctest.testmod()
-8
View File
@@ -121,11 +121,3 @@ def authenticate(username, password, service='login'):
if __name__ == "__main__":
import getpass
print authenticate(getpass.getuser(), getpass.getpass())
-3
View File
@@ -128,6 +128,3 @@ def test():
if __name__ == '__main__':
test()
-8
View File
@@ -165,11 +165,3 @@ if __name__ == '__main__':
ell=Learner()
ell.loadd(eval(IUP))
print ell.generate(1000,prefix=None)
-2
View File
@@ -9,5 +9,3 @@ from fpdf import *
# import warnings
# warnings.warn("pyfpdf package name is deprecated, please use fpdf instead")
-5
View File
@@ -961,8 +961,3 @@ if __name__ == '__main__':
# reimport as global __main__ namespace is destroyed
import qdb
qdb.main(**kwargs)
-6
View File
@@ -163,9 +163,3 @@ class RedisClient(object):
def __keyFormat__(self, key):
return 'w2p:%s:%s' % (self.request.application,
key.replace(' ', '_'))
-2
View File
@@ -197,5 +197,3 @@ class RecordDeleter(object):
self.db.srem(id_idx, self.key)
#remove the key itself
self.db.delete(self.key)
-8
View File
@@ -586,11 +586,3 @@ def test():
if __name__ == '__main__':
print test()
-8
View File
@@ -264,11 +264,3 @@ def run(history, statement, env={}):
if __name__=='__main__':
history=History()
while True: print run(history, raw_input('>>> ')).rstrip()
-5
View File
@@ -148,8 +148,3 @@ if __name__ == "__main__":
location = "http://www.web2py.com.ar/webservices/sample/call/jsonrpc"
client = ServerProxy(location, verbose='--verbose' in sys.argv,)
print client.add(1, 2)
-8
View File
@@ -110,11 +110,3 @@ def sms_email(number,provider):
elif number[:2]=='00': number=number[3:]
number=re.sub('[^\d]','',number)
return number+SMSCODES[provider]
-4
View File
@@ -877,7 +877,3 @@ if __name__ == '__main__':
s.cell('b', value="=sin(a)")
s.cell('c', value="=cos(a)**2+b*b")
print s['c'].computed_value
-6
View File
@@ -62,9 +62,3 @@ if __name__=='__main__':
print 'paid',s['paid'],s['amount'] ,s['currency']
s = Stripe(key).refund(d[u'id'])
print 'refunded',s['refunded']
-8
View File
@@ -241,11 +241,3 @@ class TaskBarIcon:
RUNNING = 0
STOPPED = 1
-4
View File
@@ -93,7 +93,3 @@ if __name__=='__main__':
print('')
# You can turn off ordering of results
print(t.getReportText(orderByCost=False))
-6
View File
@@ -516,9 +516,3 @@ class mobilize(object):
items.insert(-1,'mobile')
current.response.view = '.'.join(items)
return self.func()
-3
View File
@@ -200,6 +200,3 @@ def test_web2py_registration_and_login():
if __name__ == '__main__':
test_web2py_registration_and_login()
-8
View File
@@ -188,11 +188,3 @@ if __name__ == "__main__":
http_server = tornado.httpserver.HTTPServer(application)
http_server.listen(int(options.port), address=options.address)
tornado.ioloop.IOLoop.instance().start()