Upgrade examples to use python3 in cipd_and_3pp.md
Bug: 1366989 Change-Id: Idc9f9a53cbe6c87c2167804fbea5a7473465ba55 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4064606 Auto-Submit: Haiyang Pan <hypan@google.com> Reviewed-by: Benjamin Joyce (Ben) <bjoyce@chromium.org> Commit-Queue: Benjamin Joyce (Ben) <bjoyce@chromium.org> Cr-Commit-Position: refs/heads/main@{#1113037}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
2dca605d78
commit
1930245a2b
@ -220,14 +220,14 @@ When specifying the `source` in 3pp.pb, it is possible to use a custom catch-all
|
||||
script to probe for the latest version and obtain the latest sources. A simple
|
||||
example can be like the following:
|
||||
|
||||
> Note that this python script should be **python3-compatible**.
|
||||
|
||||
```
|
||||
#!/usr/bin/env python
|
||||
# Copyright 2021 The Chromium Authors
|
||||
#!/usr/bin/env python3
|
||||
# Copyright 2023 The Chromium Authors
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
|
Reference in New Issue
Block a user