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

Unified Diff: tools/telemetry/telemetry/value/none_values.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/value/merge_values_unittest.py ('k') | tools/telemetry/telemetry/value/scalar.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/value/none_values.py
diff --git a/tools/telemetry/telemetry/value/none_values.py b/tools/telemetry/telemetry/value/none_values.py
deleted file mode 100644
index 7e2759a497e7a25f281113bbc5346a0437b505c0..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/value/none_values.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-MERGE_FAILURE_REASON = (
- 'Merging values containing a None value results in a None value.')
-
-class NoneValueMissingReason(Exception):
- pass
-
-class ValueMustHaveNoneValue(Exception):
- pass
-
-def ValidateNoneValueReason(value, none_value_reason):
- """Ensures that the none_value_reason is appropriate for the given value.
-
- There is a logical equality between having a value of None and having a
- reason for being None. That is to say, value is None if and only if
- none_value_reason is a string.
- """
- if value is None and not isinstance(none_value_reason, basestring):
- raise NoneValueMissingReason()
- if value is not None and none_value_reason is not None:
- raise ValueMustHaveNoneValue()
« no previous file with comments | « tools/telemetry/telemetry/value/merge_values_unittest.py ('k') | tools/telemetry/telemetry/value/scalar.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698