Dulwich.io dulwich / 9599545
Fix encoding. Jelmer Vernooń≥ 12 days ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
167167 email = None
168168 default_user, default_email = _get_default_identity()
169169 if user is None:
170 user = default_user.encode('utf-8')
170 user = default_user
171 if not isinstance(user, bytes):
172 user = user.encode('utf-8')
171173 if email is None:
172 email = default_email.encode('utf-8')
174 email = default_email
175 if not isinstance(email, bytes):
176 email = email.encode('utf-8')
173177 return (user + b" <" + email + b">")
174178
175179