code: def basic_auth(self, username, password):
          
          if not (username and password):
              return
  
          self.auth = (username, password)
  
          # Disable token authentication
          self.headers.pop('Authorization', None)
docs: Set the Basic Auth credentials on this Session.
  
          :param str username: Your GitHub username
          :param str password: Your GitHub password