aboutsummaryrefslogtreecommitdiff
path: root/mparser.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-01-25 02:43:59 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-01-25 02:43:59 +0200
commit4293a2ac65e2900333dca7cf4296d05adb631560 (patch)
tree18b8ce7e469ea823797e4333494f92ffea64bbbd /mparser.py
parented160fbbe4def47d47f99285e8fd8c412470dae9 (diff)
downloadmeson-4293a2ac65e2900333dca7cf4296d05adb631560.zip
meson-4293a2ac65e2900333dca7cf4296d05adb631560.tar.gz
meson-4293a2ac65e2900333dca7cf4296d05adb631560.tar.bz2
Removed shebang lines from files that are not executable.
Diffstat (limited to 'mparser.py')
-rw-r--r--mparser.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/mparser.py b/mparser.py
index f17d9e8..3392466 100644
--- a/mparser.py
+++ b/mparser.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python3
-
# Copyright 2014 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -516,13 +514,3 @@ class Parser:
block.lines.append(curline)
cond = self.accept('eol')
return block
-
-if __name__ == '__main__':
- for code in sys.argv[1:]:
- parser = Parser(open(code).read())
- try:
- print(code)
- parser.parse()
- except ParseException as e:
- print('Error', e.text, 'line', e.lineno, 'column', e.colno)
-