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

Side by Side Diff: appengine/components/components/utils.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 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 by the Apache v2.0 license that can be 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Mixed bag of NDB utilities.""" 5 """Mixed bag of NDB utilities."""
6 6
7 # Disable 'Access to a protected member ...'. NDB uses '_' for other purposes. 7 # Disable 'Access to a protected member ...'. NDB uses '_' for other purposes.
8 # pylint: disable=W0212 8 # pylint: disable=W0212
9 9
10 # Disable: 'Method could be a function'. It can't: NDB expects a method. 10 # Disable: 'Method could be a function'. It can't: NDB expects a method.
11 # pylint: disable=R0201 11 # pylint: disable=R0201
12 12
13 import datetime 13 import datetime
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 627
628 @functools.wraps(async_fn) 628 @functools.wraps(async_fn)
629 def sync(*args, **kwargs): 629 def sync(*args, **kwargs):
630 return async_fn(*args, **kwargs).get_result() 630 return async_fn(*args, **kwargs).get_result()
631 631
632 if is_static_method: 632 if is_static_method:
633 sync = staticmethod(sync) 633 sync = staticmethod(sync)
634 elif is_class_method: 634 elif is_class_method:
635 sync = classmethod(sync) 635 sync = classmethod(sync)
636 return sync 636 return sync
OLDNEW
« no previous file with comments | « appengine/components/components/template.py ('k') | appengine/components/components/utils_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698