diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-11-02 20:20:09 -0700 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-11-02 20:20:09 -0700 |
commit | 7d5fa50ca473f6c4336b80ca365e2d1270b9136f (patch) | |
tree | bb3b4fabdca4041e61cc6c0c4243012e1201b786 | |
parent | dc58b7bcb2bf6c945878a841b1861f0f195a3075 (diff) |
More type conversions
-rw-r--r-- | paramiko/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/util.py b/paramiko/util.py index b2ac3f53..51fa6d66 100644 --- a/paramiko/util.py +++ b/paramiko/util.py @@ -285,10 +285,10 @@ class Counter (object): # start with value - 1 so we don't have to store intermediate values when counting # could the iv be 0? if initial_value == 0: - self.value = array.array('c', '\xFF' * self.blocksize) + self.value = array.array('c', max_byte * self.blocksize) else: x = deflate_long(initial_value - 1, add_sign_padding=False) - self.value = array.array('c', '\x00' * (self.blocksize - len(x)) + x) + self.value = array.array('c', zero_byte * (self.blocksize - len(x)) + x) def __call__(self): """Increament the counter and return the new value""" |