diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-07-18 11:20:34 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2015-11-02 13:05:53 -0800 |
commit | 81024992e8fe5ccde8303e08feb4b9bdc4bd0d24 (patch) | |
tree | cbb2da52e53e03fadc2b240570ab301004485cf2 | |
parent | 3e08a40e9aee4aa289e9704c115773e1596d7f5d (diff) |
Fixed a typo in method name
The method on Python3 is `bit_length`, not `bitlength`.
-rw-r--r-- | paramiko/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/util.py b/paramiko/util.py index 46278a69..0d8ce32a 100644 --- a/paramiko/util.py +++ b/paramiko/util.py @@ -118,7 +118,7 @@ def safe_string(s): def bit_length(n): try: - return n.bitlength() + return n.bit_length() except AttributeError: norm = deflate_long(n, False) hbyte = byte_ord(norm[0]) |