Fix Python 2.5 support
And fix some PEP8 style issues (mostly about spaces) while I was there. refs #806
This commit is contained in:
parent
db85b651d4
commit
062f2c4c3e
10 changed files with 30 additions and 16 deletions
|
|
@ -17,6 +17,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import with_statement
|
||||
|
||||
from weboob.capabilities.bill import ICapBill, SubscriptionNotFound
|
||||
from weboob.tools.backend import BaseBackend, BackendConfig
|
||||
|
|
@ -58,16 +59,14 @@ class FreeMobileBackend(BaseBackend, ICapBill):
|
|||
else:
|
||||
raise SubscriptionNotFound()
|
||||
|
||||
|
||||
def iter_history(self, subscription):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
def get_pdf(self, account):
|
||||
raise NotImplementedError()
|
||||
|
||||
# The subscription is actually useless, but maybe for the futur...
|
||||
def get_details(self, subscription):
|
||||
def get_details(self, subscription):
|
||||
with self.browser:
|
||||
for detail in self.browser.get_details():
|
||||
yield detail
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue