Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: run_tests.py

Issue 29324306: Noissue - Remove unused re import (Closed)
Patch Set: Created Aug. 19, 2015, 10:21 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # coding: utf-8 2 # coding: utf-8
3 3
4 # This file is part of Adblock Plus <https://adblockplus.org/>, 4 # This file is part of Adblock Plus <https://adblockplus.org/>,
5 # Copyright (C) 2006-2015 Eyeo GmbH 5 # Copyright (C) 2006-2015 Eyeo GmbH
6 # 6 #
7 # Adblock Plus is free software: you can redistribute it and/or modify 7 # Adblock Plus is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License version 3 as 8 # it under the terms of the GNU General Public License version 3 as
9 # published by the Free Software Foundation. 9 # published by the Free Software Foundation.
10 # 10 #
11 # Adblock Plus is distributed in the hope that it will be useful, 11 # Adblock Plus is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details. 14 # GNU General Public License for more details.
15 # 15 #
16 # You should have received a copy of the GNU General Public License 16 # You should have received a copy of the GNU General Public License
17 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 17 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
18 18
19 import io 19 import io
20 import json 20 import json
21 import os 21 import os
22 import posixpath 22 import posixpath
23 import re
24 import subprocess 23 import subprocess
25 import sys 24 import sys
26 import urlparse 25 import urlparse
27 26
28 import flask 27 import flask
29 28
30 app = flask.Flask(__name__) 29 app = flask.Flask(__name__)
31 30
32 def get_scripts(dir, reldir=""): 31 def get_scripts(dir, reldir=""):
33 for filename in os.listdir(dir): 32 for filename in os.listdir(dir):
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if __name__ == "__main__": 92 if __name__ == "__main__":
94 DEPENDENCY_SCRIPT = os.path.join(os.path.dirname(__file__), "ensure_dependenci es.py") 93 DEPENDENCY_SCRIPT = os.path.join(os.path.dirname(__file__), "ensure_dependenci es.py")
95 94
96 try: 95 try:
97 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT]) 96 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT])
98 except subprocess.CalledProcessError as e: 97 except subprocess.CalledProcessError as e:
99 print >>sys.stderr, e 98 print >>sys.stderr, e
100 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!" 99 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!"
101 100
102 app.run(debug=True) 101 app.run(debug=True)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld