Fix comparisons to None

Diff checked manually.

autopep8 -a -ir -j2 --select=E711 .

This required the "agressive" option because it can change code
behavior.
This commit is contained in:
Laurent Bachelier 2013-03-15 20:20:35 +01:00
commit e0542c2e4a
14 changed files with 27 additions and 27 deletions

View file

@ -153,7 +153,7 @@ class CreditMutuelBrowser(BaseBrowser):
self['IDB'] = [account[-1]]
self['ICR'] = [to[-1]]
self['MTTVIR'] = '%s' % str(amount).replace('.', ',')
if reason != None:
if reason is not None:
self['LIBDBT'] = reason
self['LIBCRT'] = reason
self.submit()