Debian Codegraph @

tools/run_tests/sanity/check_banned_filenames.py

raw symbols SCIP
1 #!/usr/bin/env python3
2
3 # Copyright 2022 gRPC authors.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 import osscip-python python python-stdlib 3.11 os/__init__:
18 import sysscip-python python python-stdlib 3.11 sys/__init__:
19
20 BANNED_FILENAMESscip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/BANNED_FILENAMES. = [
21 'BUILD.gn',
22 ]
23
24 osscip-python python python-stdlib 3.11 os/__init__:.chdirscip-python python python-stdlib 3.11 os/chdir().(osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 ntpath/join().(osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..dirnamescip-python python python-stdlib 3.11 ntpath/join().(sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[0]), '../../..'))
25
26 badscip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/bad. = []
27 for filenamescip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/filename. in BANNED_FILENAMESscip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/BANNED_FILENAMES.:
28 if osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..existsscip-python python python-stdlib 3.11 ntpath/join().(filenamescip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/filename.):
29 badscip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/bad..appendscip-python python python-stdlib 3.11 builtins/list#append().(filenamescip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/filename.)
30
31 if badscip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/bad.:
32 for filescip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/file. in badscip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/bad.:
33 printscip-python python python-stdlib 3.11 builtins/print().("%s should not exist" % filescip-python python grpcio 1.51.1 `tools.run_tests.sanity.check_banned_filenames`/file.)
34 sysscip-python python python-stdlib 3.11 sys/__init__:.exit(1)