def get_data_from_intree(self):
<EOL>if isinstance(self.intree, (str, bytes)):<EOL><INDENT>self.intree = self.intree.strip()<EOL>if any([i in self.intree for i in ("<STR_LIT>", "<STR_LIT>")]):<EOL><INDENT>response = requests.get(self.intree)<EOL>response.raise_for_status()<EOL>self.data = response.text.strip().split("<STR_LIT:\n>")<EOL><DEDENT>elif os.path.exists(self.intree):<EOL><INDENT>with open(self.intree, '<STR_LIT>') as indata:<EOL><INDENT>self.data = indata.readlines()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.data = self.intree.split("<STR_LIT:\n>")<EOL><DEDENT><DEDENT>elif isinstance(self.intree, (list, set, tuple)):<EOL><INDENT>self.data = list(self.intree)<EOL><DEDENT>
Load *data* from a file or string and return as a list of strings.
The data contents could be one newick string; a multiline NEXUS format
for one tree; multiple newick strings on multiple lines; or multiple
newick strings in a multiline NEXUS format. In any case, we will read
in the data as a list on lines.