Remove useless __main__ in files that cannot be executed

pull/3769/head
Xavier Claessens 7 years ago
parent fda99b08a4
commit 1e6d72eb5a
  1. 5
      mesonbuild/mconf.py
  2. 3
      mesonbuild/mintro.py
  3. 4
      mesonbuild/wrap/wraptool.py

@ -13,7 +13,6 @@
# limitations under the License. # limitations under the License.
import os import os
import sys
import argparse import argparse
from . import (coredata, mesonlib, build) from . import (coredata, mesonlib, build)
@ -172,7 +171,3 @@ def run(args):
print('Meson configurator encountered an error:') print('Meson configurator encountered an error:')
raise e raise e
return 0 return 0
if __name__ == '__main__':
sys.exit(run(sys.argv[1:]))

@ -249,6 +249,3 @@ def run(args):
print('No command specified') print('No command specified')
return 1 return 1
return 0 return 0
if __name__ == '__main__':
sys.exit(run(sys.argv[1:]))

@ -213,6 +213,4 @@ def run(args):
add_arguments(parser) add_arguments(parser)
options = parser.parse_args(args) options = parser.parse_args(args)
options.wrap_func(options) options.wrap_func(options)
return 0
if __name__ == '__main__':
sys.exit(run(sys.argv[1:]))

Loading…
Cancel
Save