~brian.curtin/ubuntu-sso-client/py3-iter-removal

« back to all changes in this revision

Viewing changes to ubuntu_sso/account.py

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2012-06-22 18:55:32 UTC
  • mfrom: (972.1.2 use-dirspec)
  • Revision ID: tarmac-20120622185532-3363b9n1wpneoeon
Remove the xdg_base_directory module as it duplicates dirspec now

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
        finally:
198
198
            restful_client.shutdown()
199
199
 
200
 
        logger.debug('login: authentication successful! consumer_key: %r, ' \
 
200
        logger.debug('login: authentication successful! consumer_key: %r, '
201
201
                     'token_name: %r', credentials['consumer_key'], token_name)
202
202
        defer.returnValue(credentials)
203
203
 
212
212
        finally:
213
213
            restful_client.shutdown()
214
214
        key = 'preferred_email'
215
 
        result = key in me_info and me_info[key] != None
 
215
        result = key in me_info and me_info[key] is not None
216
216
 
217
217
        logger.info('is_validated: consumer_key: %r, result: %r.',
218
218
                    token['consumer_key'], result)