def _prefix_master(master):
    "Convert user-specified master name to full master name.\n\n  Buildbucket uses full master name(master.tryserver.chromium.linux) as bucket\n  name, while the developers always use shortened master name\n  (tryserver.chromium.linux) by stripping off the prefix 'master.'. This\n  function does the conversion for buildbucket migration.\n  "
    prefix = 'master.'
    if master.startswith(prefix):
        return master
    return ('%s%s' % (prefix, master))
Convert user-specified master name to full master name.

Buildbucket uses full master name(master.tryserver.chromium.linux) as bucket
name, while the developers always use shortened master name
(tryserver.chromium.linux) by stripping off the prefix 'master.'. This
function does the conversion for buildbucket migration.
def _prefix_master(master):
    "Convert user-specified master name to full master name.\n\n  Buildbucket uses full master name(master.tryserver.chromium.linux) as bucket\n  name, while the developers always use shortened master name\n  (tryserver.chromium.linux) by stripping off the prefix 'master.'. This\n  function does the conversion for buildbucket migration.\n  "
    prefix = 'master.'
    if master.startswith(prefix):
        return master
    return ('%s%s' % (prefix, master))