summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-07-18 11:20:34 -0700
committerJeff Forcier <jeff@bitprophet.org>2015-11-02 13:05:53 -0800
commit81024992e8fe5ccde8303e08feb4b9bdc4bd0d24 (patch)
treecbb2da52e53e03fadc2b240570ab301004485cf2
parent3e08a40e9aee4aa289e9704c115773e1596d7f5d (diff)
downloadparamiko-81024992e8fe5ccde8303e08feb4b9bdc4bd0d24.tar.gz
Fixed a typo in method name
The method on Python3 is `bit_length`, not `bitlength`.
-rw-r--r--paramiko/util.py2
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])