Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed overeager seek

The .seek(0) in Distribution._sign_string isn't necessary, any preparation of
the file object that needs to be done can be done outside of this bit of code
  • Loading branch information...
commit 5ee626a7b47f44a7d7414b2d178858a501708d54 1 parent c8b848c
@seandst seandst authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  boto/cloudfront/distribution.py
View
1  boto/cloudfront/distribution.py
@@ -656,7 +656,6 @@ def _sign_string(message, private_key_file=None, private_key_string=None):
raise ValueError("You must specify one of private_key_file or private_key_string")
# If private_key_file is a file, read its contents. Otherwise, open it and then read it
if isinstance(private_key_file, file):
- private_key_file.seek(0)
private_key_string = private_key_file.read()
elif private_key_file:
with open(private_key_file, 'r') as file_handle:
Please sign in to comment.
Something went wrong with that request. Please try again.