mirror of
https://github.com/codelucas/newspaper.git
synced 2025-12-23 05:36:50 +00:00
remove useless class, fix format on readme
This commit is contained in:
parent
e45da24c3c
commit
9df4bede0c
1 changed files with 0 additions and 27 deletions
27
testclass.py
27
testclass.py
|
|
@ -1,27 +0,0 @@
|
|||
|
||||
class Test(object):
|
||||
|
||||
def __init__(self):
|
||||
self.ll = range(11)
|
||||
|
||||
def _purge_list(self, ll=None):
|
||||
cur_ll = self.ll if not ll else ll
|
||||
|
||||
for index, e in enumerate(cur_ll):
|
||||
if e % 2 == 0:
|
||||
del cur_ll[index]
|
||||
return cur_ll
|
||||
|
||||
def purge_list(self):
|
||||
self.ll = self._purge_list()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
t = Test()
|
||||
|
||||
print t.ll
|
||||
print 'purging list'
|
||||
|
||||
t.purge_list()
|
||||
|
||||
print t.ll
|
||||
Loading…
Add table
Add a link
Reference in a new issue