summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-05 12:59:22 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-05 12:59:22 -0500
commit307f9431526dfa05d1d352cd5feb04f5fc6dad9c (patch)
tree15ef6949f99448a0d0e315710b7e4af6ff409eb1 /cmd2.py
parente2a691f47e5f81e3fdbec4af033e0e9f13884108 (diff)
downloadcmd2-git-307f9431526dfa05d1d352cd5feb04f5fc6dad9c.tar.gz
Removed unused method fileimport() from cmd2.Cmd class
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/cmd2.py b/cmd2.py
index 12e3cede..265415d5 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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__