def get_data(self, data=None): if data: self.data = data if not hasattr(self, 'data'): self.data = G.get_repo(self.full_name) return self.data
def get_data(self, data=None): if data: self.data = data if not hasattr(self, 'data'): self.data = G.get_user(self.login) return self.data