/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/urlutils.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2019-06-16 01:52:23 UTC
  • mfrom: (7336.2.1 split_config_env)
  • Revision ID: breezy.the.bot@gmail.com-20190616015223-0kkno5fepi7tmbqy
Split non-ini config methods to bedding

Merged from https://code.launchpad.net/~gz/brz/split_config_env/+merge/368863

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
def escape(relpath, safe='/~'):
166
166
    """Escape relpath to be a valid url."""
167
167
    if not isinstance(relpath, str) and sys.version_info[0] == 2:
 
168
        # GZ 2019-06-16: Should use _fs_enc instead here really?
168
169
        relpath = relpath.encode('utf-8')
169
170
    return quote(relpath, safe=safe)
170
171