Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 0 | 1.000 | stmt_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 178 | Bio/AlignIO/__init__.py |
2 | 8 | 333 | Bio/SeqIO/__init__.py |
| ||||
#Try and give helpful error messages: if isinstance(handle,basestring): raise TypeError("Need a file handle, not a string (i.e. not a filename)") if not isinstance(format,basestring): raise TypeError("Need a string for the file format (lower case)") if not format: raise ValueError("Format required (lower case string)") if format!=format.lower( ): raise ValueError("Format string '%s' should be lower case"%format) |
| ||||
#Try and give helpful error messages: if isinstance(handle,basestring): raise TypeError("Need a file handle, not a string (i.e. not a filename)") if not isinstance(format,basestring): raise TypeError("Need a string for the file format (lower case)") if not format: raise ValueError("Format required (lower case string)") if format!=format.lower( ): raise ValueError("Format string '%s' should be lower case"%format) |
| |||
#Try and give helpful error messages: if isinstance(handle,basestring): raise TypeError("Need a file handle, not a string (i.e. not a filename)") if not isinstance(format,basestring): raise TypeError("Need a string for the file format (lower case)") if not format: raise ValueError("Format required (lower case string)") if format!=format.lower( ): raise ValueError("Format string '%s' should be lower case"%format) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |