/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/bedding.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 01:35:14 UTC
  • mfrom: (7490.7.6 work)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: jelmer@jelmer.uk-20200322013514-7vw1ntwho04rcuj3
merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Functions for deriving user configuration from system environment."""
19
19
 
20
 
from __future__ import absolute_import
21
 
 
22
20
import os
23
21
import sys
24
22
 
33
31
from . import (
34
32
    errors,
35
33
    )
36
 
from .sixish import (
37
 
    PY3,
38
 
    )
39
34
 
40
35
 
41
36
def ensure_config_dir_exists(path=None):
213
208
def default_email():
214
209
    v = os.environ.get('BRZ_EMAIL')
215
210
    if v:
216
 
        if not PY3:
217
 
            v = v.decode(osutils.get_user_encoding())
218
211
        return v
219
212
    v = os.environ.get('EMAIL')
220
213
    if v:
221
 
        if not PY3:
222
 
            v = v.decode(osutils.get_user_encoding())
223
214
        return v
224
215
    name, email = _auto_user_id()
225
216
    if name and email: