diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-13 22:19:02 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-13 22:19:02 -0400 |
commit | fdc24bf275a902c7927d8c6633a30540d8d95cca (patch) | |
tree | 86fbb95f935df0f6923b0485cf23c98108284b44 /cmd2/history.py | |
parent | 677e8bb845ecee0bc58035095fc599ffb074c00f (diff) | |
download | cmd2-git-fdc24bf275a902c7927d8c6633a30540d8d95cca.tar.gz |
Cleaned up some PyCharm warnings
Diffstat (limited to 'cmd2/history.py')
-rw-r--r-- | cmd2/history.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/history.py b/cmd2/history.py index 729cc6e3..7cc36bfc 100644 --- a/cmd2/history.py +++ b/cmd2/history.py @@ -128,12 +128,12 @@ class History(list): # \s*$ match any whitespace at the end of the input. This is here so # you don't have to trim the input # - spanpattern = re.compile(r'^\s*(?P<start>-?[1-9]{1}\d*)?(?P<separator>:|(\.{2,}))?(?P<end>-?[1-9]{1}\d*)?\s*$') + spanpattern = re.compile(r'^\s*(?P<start>-?[1-9]\d*)?(?P<separator>:|(\.{2,}))?(?P<end>-?[1-9]\d*)?\s*$') def span(self, span: str) -> List[HistoryItem]: """Return an index or slice of the History list, - :param raw: string containing an index or a slice + :param span: string containing an index or a slice :return: a list of HistoryItems This method can accommodate input in any of these forms: |