diff options
author | Thomas Waldmann <tw@waldmann-edv.de> | 2015-02-27 18:27:46 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-03-22 14:07:22 +0200 |
commit | bece5d28349ac226713537bef07f85af65b96a26 (patch) | |
tree | c3003da386da80106f1ac0a3ea55dde2e3eb75a0 /obnamlib/encryption.py | |
parent | 787478a81bbc7c1c74ed5c0f2d5ef26022ec4e42 (diff) | |
download | obnam-bece5d28349ac226713537bef07f85af65b96a26.tar.gz |
avoid shadowing builtins
Diffstat (limited to 'obnamlib/encryption.py')
-rw-r--r-- | obnamlib/encryption.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/encryption.py b/obnamlib/encryption.py index 775e008a..ddd50fd7 100644 --- a/obnamlib/encryption.py +++ b/obnamlib/encryption.py @@ -38,9 +38,9 @@ def generate_symmetric_key(numbits, filename='/dev/random'): tracing.trace('numbits=%d', numbits) - bytes = (numbits + 7) / 8 + count = (numbits + 7) / 8 f = open(filename, 'rb') - key = f.read(bytes) + key = f.read(count) f.close() return key.encode('hex') |