Revert "Merge commit 'refs/top-bases/t/bug-1568' into t/bug-1568"

This reverts commit 12016d5408, reversing
changes made to d006092d37.
This commit is contained in:
Sascha Silbe
2010-03-09 23:28:18 +00:00
parent 12016d5408
commit d38d865c7c
3 changed files with 1 additions and 13 deletions
+1 -5
View File
@@ -105,18 +105,14 @@ class Profile(object):
return None
key = ""
begin_found = False
end_found = False
for l in lines:
l = l.strip()
if l.startswith("-----BEGIN DSA PRIVATE KEY-----"):
begin_found = True
continue
if l.startswith("-----END DSA PRIVATE KEY-----"):
end_found = True
continue
key += l
if not (len(key) and begin_found and end_found):
if not len(key):
logging.error("Error parsing public key.")
return None