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...
1 parent c8b848c commit 5ee626a7b47f44a7d7414b2d178858a501708d54 @seandst seandst committed Jan 8, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 boto/cloudfront/
@@ -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_string =
elif private_key_file:
with open(private_key_file, 'r') as file_handle:

0 comments on commit 5ee626a

Please sign in to comment.