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

Side by Side Diff: tools/telemetry/third_party/gsutilz/third_party/python-gflags/gflags_validators.py

Issue 1264873003: Add gsutil/third_party to telemetry/third_party/gsutilz/third_party. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove httplib2 Created 5 years, 4 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2010, Google Inc. 3 # Copyright (c) 2010, Google Inc.
4 # All rights reserved. 4 # All rights reserved.
5 # 5 #
6 # Redistribution and use in source and binary forms, with or without 6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions are 7 # modification, are permitted provided that the following conditions are
8 # met: 8 # met:
9 # 9 #
10 # * Redistributions of source code must retain the above copyright 10 # * Redistributions of source code must retain the above copyright
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 def PrintFlagsWithValues(self, flag_values): 179 def PrintFlagsWithValues(self, flag_values):
180 prefix = 'flags ' 180 prefix = 'flags '
181 flags_with_values = [] 181 flags_with_values = []
182 for key in self.flag_names: 182 for key in self.flag_names:
183 flags_with_values.append('%s=%s' % (key, flag_values[key].value)) 183 flags_with_values.append('%s=%s' % (key, flag_values[key].value))
184 return prefix + ', '.join(flags_with_values) 184 return prefix + ', '.join(flags_with_values)
185 185
186 def GetFlagsNames(self): 186 def GetFlagsNames(self):
187 return self.flag_names 187 return self.flag_names
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698