pep8 cleaning

This commit is contained in:
Florent 2013-01-08 21:03:19 +01:00
commit b8227b69b1
2 changed files with 4 additions and 9 deletions

View file

@ -70,7 +70,6 @@ class FreeMobileBackend(BaseBackend, ICapBill):
for history in self.browser.get_history(subscription):
yield history
def get_bill(self, id):
with self.browser:
bill = self.browser.get_bill(id)
@ -79,7 +78,6 @@ class FreeMobileBackend(BaseBackend, ICapBill):
else:
raise BillNotFound()
def iter_bills(self, subscription):
if not isinstance(subscription, Subscription):
subscription = self.get_subscription(subscription)
@ -88,7 +86,6 @@ class FreeMobileBackend(BaseBackend, ICapBill):
for bill in self.browser.iter_bills(subscription.id):
yield bill
def get_details(self, subscription):
if not isinstance(subscription, Subscription):
subscription = self.get_subscription(subscription)
@ -97,7 +94,6 @@ class FreeMobileBackend(BaseBackend, ICapBill):
for detail in self.browser.get_details(subscription):
yield detail
def download_bill(self, bill):
if not isinstance(bill, Bill):
bill = self.get_bill(bill)