diff options
author | Andy Grover <agrover@redhat.com> | 2013-10-18 22:22:00 -0700 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2013-10-18 22:22:00 -0700 |
commit | 458b951808bd930127e0627e50327ed51cc9d8d4 (patch) | |
tree | 1e42a216c03ee8e0d0a7cc805c6c1e1a7a5ee967 | |
parent | 9a2f993add2c7cc8f1ecc3d3aea06486a8d5d233 (diff) | |
parent | 9fdde09ed8ec0e31a3e4577daedb6bdd9f781d51 (diff) | |
download | configshell-fb-458b951808bd930127e0627e50327ed51cc9d8d4.tar.gz |
Merge pull request #9 from cvubrugier/master
Fix an integer division on Python 3
-rw-r--r-- | configshell/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configshell/shell.py b/configshell/shell.py index 054c7ca..4349f50 100644 --- a/configshell/shell.py +++ b/configshell/shell.py @@ -742,7 +742,7 @@ class ConfigShell(object): prompt_length = self.prefs['prompt_length'] if prompt_length and prompt_length < len(prompt_path): - half = (prompt_length-3)/2 + half = (prompt_length - 3) // 2 prompt_path = "%s...%s" \ % (prompt_path[:half], prompt_path[-half:]) |