diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-05 12:59:22 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-05 12:59:22 -0500 |
commit | 307f9431526dfa05d1d352cd5feb04f5fc6dad9c (patch) | |
tree | 15ef6949f99448a0d0e315710b7e4af6ff409eb1 /cmd2.py | |
parent | e2a691f47e5f81e3fdbec4af033e0e9f13884108 (diff) | |
download | cmd2-git-307f9431526dfa05d1d352cd5feb04f5fc6dad9c.tar.gz |
Removed unused method fileimport() from cmd2.Cmd class
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -1405,16 +1405,6 @@ class Cmd(cmd.Cmd): do_r = do_run - def fileimport(self, statement, source): - try: - f = open(os.path.expanduser(source)) - except IOError: - self.stdout.write("Couldn't read from file %s\n" % source) - return '' - data = f.read() - f.close() - return data - def runTranscriptTests(self, callargs): class TestMyAppCase(Cmd2TestCase): CmdApp = self.__class__ |