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

Side by Side Diff: infra/libs/git2/data/data.py

Issue 355153002: Refactor infra git libs and testing. (Closed) Base URL: https://chromium.googlesource.com/infra/infra@fake_testing_support
Patch Set: Change config ref to have a sandard naming scheme Created 6 years, 5 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
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5
6 ################################################################################
7 # Base Class
8 ################################################################################
9
10 class Alterable(object):
11 def to_dict(self): # pragma: no cover
12 """The shallow dictionary representation of this object (i.e. the dictionary
13 may contain Alterable instances as values)."""
14 raise NotImplementedError()
15
16 def alter(self, **kwargs): # pragma: no cover
17 """Returns a copy of self, except with the fields listed in kwargs replaced
18 with new values."""
19 raise NotImplementedError()
20
21 @classmethod
22 def from_raw(cls, data): # pragma: no cover
23 """Construct an instance of this class from a string."""
24 raise NotImplementedError()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698