Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: recipe_modules/path/api.py

Issue 2702313003: Remove unused imports and fix some other linter errors. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2013 The LUCI Authors. All rights reserved. 1 # Copyright 2013 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 import functools 5 import functools
6 import itertools 6 import itertools
7 import os 7 import os
8 import sys
9 import tempfile 8 import tempfile
10 9
11 from recipe_engine import recipe_api 10 from recipe_engine import recipe_api
12 from recipe_engine import config_types 11 from recipe_engine import config_types
13 12
14 13
15 class Error(Exception): 14 class Error(Exception):
16 """Error specific to path recipe module.""" 15 """Error specific to path recipe module."""
17 16
18 17
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 if name in self.OK_ATTRS: 295 if name in self.OK_ATTRS:
297 return getattr(self._path_mod, name) 296 return getattr(self._path_mod, name)
298 if name in self.FILTER_METHODS: 297 if name in self.FILTER_METHODS:
299 return string_filter(getattr(self._path_mod, name)) 298 return string_filter(getattr(self._path_mod, name))
300 raise AttributeError("'%s' object has no attribute '%s'" % 299 raise AttributeError("'%s' object has no attribute '%s'" %
301 (self._path_mod, name)) # pragma: no cover 300 (self._path_mod, name)) # pragma: no cover
302 301
303 def __dir__(self): # pragma: no cover 302 def __dir__(self): # pragma: no cover
304 # Used for helping out show_me_the_modules.py 303 # Used for helping out show_me_the_modules.py
305 return self.__dict__.keys() + list(self.OK_ATTRS + self.FILTER_METHODS) 304 return self.__dict__.keys() + list(self.OK_ATTRS + self.FILTER_METHODS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698