diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-07-08 11:36:48 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-07-08 11:36:48 -0400 |
commit | 400b8317c21600fe68c0ac4c98449f73a64ac309 (patch) | |
tree | acaf7c79a059e1037ebb117a0df4e976e56723ea /docs | |
parent | ce8da647908a984950fb3b329d2bdd98a99b09e2 (diff) | |
download | cmd2-git-400b8317c21600fe68c0ac4c98449f73a64ac309.tar.gz |
Load command uses utf-8 encoding for opening files in Python 3 instead of OS-default
This fixes a unit test bug where on Windows it was trying to load a utf-8 file as some other encoding starting with "cp".
Diffstat (limited to 'docs')
-rw-r--r-- | docs/freefeatures.rst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst index 7381ff8e..1c829f0a 100644 --- a/docs/freefeatures.rst +++ b/docs/freefeatures.rst @@ -13,15 +13,21 @@ Script files ============ Text files can serve as scripts for your ``cmd2``-based -application, with the ``load``, ``save``, and ``edit`` -commands. +application, with the ``load``, ``_relative_load``, ``save``, and ``edit`` commands. + +Both ASCII and UTF-8 encoded unicode text files are supported. + +Simply include one command per line, typed exactly as you would inside a ``cmd2`` application. .. automethod:: cmd2.Cmd.do_load +.. automethod:: cmd2.Cmd.do__relative_load + .. automethod:: cmd2.Cmd.do_save .. automethod:: cmd2.Cmd.do_edit + Comments ======== |