Index: Doc/library/cmd.rst =================================================================== --- Doc/library/cmd.rst (revision 86561) +++ Doc/library/cmd.rst (working copy) @@ -283,8 +283,8 @@ def do_playback(self, arg): 'Playback commands from a file: PLAYBACK rose.cmd' self.close() - cmds = open(arg).read().splitlines() - self.cmdqueue.extend(cmds) + with open(arg) as f: + self.cmdqueue.extend(line.rstrip() for line in f) def precmd(self, line): line = line.lower() if self.file and 'playback' not in line: