summaryrefslogtreecommitdiff
path: root/examples/paged_output.py
diff options
context:
space:
mode:
authorkotfu <jared@kotfu.net>2018-05-24 19:07:45 -0600
committerGitHub <noreply@github.com>2018-05-24 19:07:45 -0600
commitcad21a60fa92ebe4a7c177142d273f9f7497967b (patch)
tree3cfa590653af8b7570bd4073384467d2ca736fa0 /examples/paged_output.py
parent5d64ebee348aeffb02fc385f903c9af431e3721b (diff)
parent190fecb34ac91e25f64615f378d6d59ef6d77de8 (diff)
downloadcmd2-git-cad21a60fa92ebe4a7c177142d273f9f7497967b.tar.gz
Merge pull request #413 from python-cmd2/speedup_import
Defer certain imports
Diffstat (limited to 'examples/paged_output.py')
-rwxr-xr-xexamples/paged_output.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/paged_output.py b/examples/paged_output.py
index 9396f04e..c56dcb89 100755
--- a/examples/paged_output.py
+++ b/examples/paged_output.py
@@ -3,8 +3,7 @@
"""A simple example demonstrating the using paged output via the ppaged() method.
"""
-from cmd2 import cmd2
-from cmd2.cmd2 import with_argument_list
+import cmd2
class PagedOutput(cmd2.Cmd):
@@ -13,7 +12,7 @@ class PagedOutput(cmd2.Cmd):
def __init__(self):
super().__init__()
- @with_argument_list
+ @cmd2.with_argument_list
def do_page_file(self, args):
"""Read in a text file and display its output in a pager."""
if not args: