diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-03-09 23:28:18 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2010-03-09 23:28:18 (GMT) |
commit | d38d865c7c0cb0a909f5549d109ec21afbab064c (patch) | |
tree | 3a11e2501364b74703130c1920415ce6df415e6c /src | |
parent | 12016d54088c8bbd0b48b33e591ffab94875360b (diff) |
Revert "Merge commit 'refs/top-bases/t/bug-1568' into t/bug-1568"
This reverts commit 12016d54088c8bbd0b48b33e591ffab94875360b, reversing
changes made to d006092d37b180bb0490ab7e1182662afc5ae5cf.
Diffstat (limited to 'src')
-rw-r--r-- | src/sugar/profile.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sugar/profile.py b/src/sugar/profile.py index 3f93bba..3ea1e67 100644 --- a/src/sugar/profile.py +++ b/src/sugar/profile.py @@ -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 |