/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

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: