From f49e2539b7f3e8962de55c955b54a1294550f288 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 18 Mar 2015 15:32:21 -0700 Subject: [PATCH] Minor formatting, pass code check --- mininet/cli.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mininet/cli.py b/mininet/cli.py index 3635b7f..a7fab39 100644 --- a/mininet/cli.py +++ b/mininet/cli.py @@ -77,14 +77,14 @@ class CLI( Cmd ): return cls.readlineInited = True try: - import readline + from readline import read_history_file, write_history_file except ImportError: pass else: - history_path = os.path.expanduser('~/.mininet_history') - if os.path.isfile(history_path): - readline.read_history_file(history_path) - atexit.register(lambda: readline.write_history_file(history_path)) + history_path = os.path.expanduser( '~/.mininet_history' ) + if os.path.isfile( history_path ): + read_history_file( history_path ) + atexit.register( lambda: write_history_file( history_path ) ) def run( self ): "Run our cmdloop(), catching KeyboardInterrupt"