Skip to content

Commit

Permalink
Removed unused method fileimport() from cmd2.Cmd class
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonhardt committed Feb 5, 2017
1 parent e2a691f commit 307f943
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,16 +1405,6 @@ def do_run(self, arg):

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__
Expand Down

0 comments on commit 307f943

Please sign in to comment.