def _repr(self): if self._session.auth: return '<GitHub [{0[0]}]>'.format(self._session.auth) return '<GitHub at 0x{0:x}>'.format(id(self))