def get_list_by_name(self, display_name):
if not display_name:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>url = self.build_url(self._endpoints.get('<STR_LIT>').format(display_name=display_name))<EOL>response = self.con.get(url)<EOL>if not response:<EOL><INDENT>return []<EOL><DEDENT>data = response.json()<EOL>return self.list_constructor(parent=self, **{self._cloud_data_key: data})<EOL>
Returns a sharepoint list based on the display name of the list