/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 bzrlib/generate_ids.py

  • Committer: Martin Pool
  • Date: 2007-03-01 04:26:55 UTC
  • mfrom: (2305 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2309.
  • Revision ID: mbp@sourcefrog.net-20070301042655-ib2mllvaozai23c6
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    #    filesystems
81
81
    # 4) Removing starting '.' characters to prevent the file ids from
82
82
    #    being considered hidden.
83
 
    ascii_word_only = _file_id_chars_re.sub('', name.lower())
 
83
    ascii_word_only = str(_file_id_chars_re.sub('', name.lower()))
84
84
    short_no_dots = ascii_word_only.lstrip('.')[:20]
85
85
    return short_no_dots + _next_id_suffix()
86
86