/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-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from . import (
34
34
    errors,
35
35
    )
36
 
from .sixish import (
37
 
    PY3,
38
 
    )
39
36
 
40
37
 
41
38
def ensure_config_dir_exists(path=None):
213
210
def default_email():
214
211
    v = os.environ.get('BRZ_EMAIL')
215
212
    if v:
216
 
        if not PY3:
217
 
            v = v.decode(osutils.get_user_encoding())
218
213
        return v
219
214
    v = os.environ.get('EMAIL')
220
215
    if v:
221
 
        if not PY3:
222
 
            v = v.decode(osutils.get_user_encoding())
223
216
        return v
224
217
    name, email = _auto_user_id()
225
218
    if name and email: