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

Issue 405083005: use better mechanism for enums in gs_utils.py (Closed)

Created:
6 years, 5 months ago by epoger
Modified:
6 years, 5 months ago
Reviewers:
borenet
CC:
reviews_skia.org, rmistry
Base URL:
https://skia.googlesource.com/common.git@master
Visibility:
Public.

Description

use better mechanism for enums in gs_utils.py This will allow more flexible subclassing of the GSUtils class: subclasses will automatically inherit the various constants. That more flexible subclassing will allow us to easily wrap common's gs_utils.py with an extended version within the buildbot repo, as discussed in https://codereview.chromium.org/405653004/diff/20001/slave/skia_slave_scripts/build_step.py#newcode60 R=borenet@google.com Committed: https://skia.googlesource.com/common/+/2e2cd80

Patch Set 1 : split gs_utils_manualtest out into its own file #

Patch Set 2 : better enum mechanism #

Total comments: 2

Patch Set 3 : all caps for constants #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -253 lines) Patch
M py/utils/gs_utils.py View 1 2 13 chunks +62 lines, -254 lines 0 comments Download
A py/utils/gs_utils_manualtest.py View 1 2 1 chunk +214 lines, -0 lines 0 comments Download
A py/utils/url_utils.py View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
epoger
Eric, PTAL. Patchset 1 just split the unittests out into their own file; I suggest ...
6 years, 5 months ago (2014-07-21 16:32:31 UTC) #1
borenet
LGTM with question https://codereview.chromium.org/405083005/diff/20001/py/utils/gs_utils.py File py/utils/gs_utils.py (right): https://codereview.chromium.org/405083005/diff/20001/py/utils/gs_utils.py#newcode75 py/utils/gs_utils.py:75: Empty = None Should these be ...
6 years, 5 months ago (2014-07-21 17:35:25 UTC) #2
epoger
https://codereview.chromium.org/405083005/diff/20001/py/utils/gs_utils.py File py/utils/gs_utils.py (right): https://codereview.chromium.org/405083005/diff/20001/py/utils/gs_utils.py#newcode75 py/utils/gs_utils.py:75: Empty = None On 2014/07/21 17:35:25, borenet wrote: > ...
6 years, 5 months ago (2014-07-21 18:03:20 UTC) #3
epoger
6 years, 5 months ago (2014-07-21 18:03:46 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r2e2cd80 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698