From: W. Trevor King Date: Fri, 6 Apr 2012 18:12:37 +0000 (-0400) Subject: Fix storage.load_person doctest typo (actually print the PGP key). X-Git-Tag: v0.2~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30b28428fb3d5c50ff0cc05551dce08f03793b39;p=pygrader.git Fix storage.load_person doctest typo (actually print the PGP key). --- diff --git a/pygrader/storage.py b/pygrader/storage.py index 9e0a521..db02f20 100644 --- a/pygrader/storage.py +++ b/pygrader/storage.py @@ -195,7 +195,7 @@ def load_person(name, data={}): ... 'emails': 'g@grey.edu, g@greyhavens.net', ... 'pgp-key': '0x0123456789ABCDEF', ... }) - >>> print('{0.name}: {0.emails}'.format(p)) + >>> print('{0.name}: {0.emails} | {0.pgp_key}'.format(p)) Gandalf: ['g@grey.edu', 'g@greyhavens.net'] | 0x0123456789ABCDEF >>> p = load_person(name='Gandalf') >>> print('{0.name}: {0.emails} | {0.pgp_key}'.format(p))