Mar-09-2019, 02:56 AM
You need to set _src_type based on _src, but you're not doing that. You do need an if/elif/else. The clauses you need are on lines 30 and 39. You probably need to read in the content as well. I'm not sure why you have the test cases in your code (line 32) and sometimes overriding any other input (line 41, where you should be using self._src). Also line 42 needs to read the content from the file. Currently it is setting self._content to None.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures