Index: tools/skp/webpages_playback.py |
diff --git a/tools/skp/webpages_playback.py b/tools/skp/webpages_playback.py |
index 67c84ae38ba672e04b67c1f921215808d5ddda19..7fbb372fd39c6a69373a90b9520ec869cef6bd9a 100644 |
--- a/tools/skp/webpages_playback.py |
+++ b/tools/skp/webpages_playback.py |
@@ -388,7 +388,10 @@ class SkPicturePlayback(object): |
# /path/to/http___mobile_news_sandbox_pt0 -> http___mobile_news_sandbox_pt0 |
_, webpage = os.path.split(site) |
# http___mobile_news_sandbox_pt0 -> mobile_news_sandbox_pt0 |
- webpage = webpage.lstrip('http___').lstrip('https___') |
+ if webpage.startswith('http___'): |
+ webpage = webpage[7:] |
borenet
2015/03/31 15:29:53
I prefer something like this:
prefix = 'http___'
|
+ elif webpage.startswith('https___'): |
+ webpage = webpage[8:] |
# /path/to/skia_yahooanswers_desktop.py -> skia_yahooanswers_desktop.py |
ps_filename = os.path.basename(page_set) |
# http___mobile_news_sandbox -> pagesetprefix_http___mobile_news_sandbox |