OLD | NEW |
1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import csv | 5 import csv |
6 import inspect | 6 import inspect |
7 import os | 7 import os |
8 | 8 |
9 from telemetry.core import util | 9 from telemetry.core import util |
10 from telemetry.page import page as page_module | 10 from telemetry.page import page as page_module |
11 from telemetry.page import page_set_archive_info | 11 from telemetry.page import page_set_archive_info |
12 from telemetry.util import cloud_storage | 12 from telemetry.util import cloud_storage |
13 | 13 |
14 | |
15 PUBLIC_BUCKET = cloud_storage.PUBLIC_BUCKET | 14 PUBLIC_BUCKET = cloud_storage.PUBLIC_BUCKET |
16 PARTNER_BUCKET = cloud_storage.PARTNER_BUCKET | 15 PARTNER_BUCKET = cloud_storage.PARTNER_BUCKET |
17 INTERNAL_BUCKET = cloud_storage.INTERNAL_BUCKET | 16 INTERNAL_BUCKET = cloud_storage.INTERNAL_BUCKET |
18 | 17 |
19 | 18 |
20 class PageSetError(Exception): | 19 class PageSetError(Exception): |
21 pass | 20 pass |
22 | 21 |
23 | 22 |
24 class PageSet(object): | 23 class PageSet(object): |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 return self.pages.__iter__() | 180 return self.pages.__iter__() |
182 | 181 |
183 def __len__(self): | 182 def __len__(self): |
184 return len(self.pages) | 183 return len(self.pages) |
185 | 184 |
186 def __getitem__(self, key): | 185 def __getitem__(self, key): |
187 return self.pages[key] | 186 return self.pages[key] |
188 | 187 |
189 def __setitem__(self, key, value): | 188 def __setitem__(self, key, value): |
190 self.pages[key] = value | 189 self.pages[key] = value |
OLD | NEW |