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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    global _gen_file_id_suffix, _gen_file_id_serial
61
61
    if _gen_file_id_suffix is None:
62
62
        _gen_file_id_suffix = ("-%s-%s-" % (
63
 
                osutils.compact_date(time.time()), osutils.rand_chars(16))
 
63
            osutils.compact_date(time.time()), osutils.rand_chars(16))
64
64
            ).encode("ascii")
65
65
    _gen_file_id_serial += 1
66
66
    return b"%s%d" % (_gen_file_id_suffix, _gen_file_id_serial)