862
862
return realname, (username + '@' + socket.gethostname())
865
874
def extract_email_address(e):
866
875
"""Return just the address part of an email string.
868
877
That is just the user@domain part, nothing else.
869
878
This part is required to contain only ascii characters.
870
879
If it can't be extracted, raises an error.
872
881
>>> extract_email_address('Jane Tester <jane@test.com>')
877
886
raise errors.NoEmailInUsername(e)
881
890
class TreeConfig(IniBasedConfig):