authomatic/providers/oauth1.py
def _access_user_info(self):
        """
        Email is available in separate method so second request is needed.
        """
        response = super(Bitbucket, self)._access_user_info()

        response.data.setdefault("email", None)

        email_response = self.access(self.user_email_url)
        if email_response.data:
            for item in email_response.data:
                if item.get("primary", False):
                    response.data.update(email=item.get("email", None))

        return response
def _access_user_info(self):
        response = super(Bitbucket, self)._access_user_info()

        response.data.setdefault("email", None)

        email_response = self.access(self.user_email_url)
        if email_response.data:
            for item in email_response.data:
                if item.get("primary", False):
                    response.data.update(email=item.get("email", None))

        return response
def _access_user_info ( self ) : response = super ( Bitbucket , self ) . _access_user_info ( ) response . data . setdefault ( "email" , None ) email_response = self . access ( self . user_email_url ) if email_response . data : for item in email_response . data : if item . get ( "primary" , False ) : response . data . update ( email = item . get ( "email" , None ) ) return response
Email is available in separate method so second request is needed.
Email is available in separate method so second request is needed .