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

Side by Side Diff: build/fake_storage.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 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
« no previous file with comments | « build/download_utils.py ('k') | build/file_tools.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Fake (similar in memory implementation) version of GSDStorage.""" 6 """Fake (similar in memory implementation) version of GSDStorage."""
7 7
8 8
9 import file_tools 9 import file_tools
10 10
11 11
(...skipping 25 matching lines...) Expand all
37 else: 37 else:
38 return None 38 return None
39 39
40 def ItemCount(self): 40 def ItemCount(self):
41 """Return a count of how many total unique keys have been written.""" 41 """Return a count of how many total unique keys have been written."""
42 return len(self._store) 42 return len(self._store)
43 43
44 def WriteCount(self): 44 def WriteCount(self):
45 """Return a count of how many total writes have been done.""" 45 """Return a count of how many total writes have been done."""
46 return self._write_count 46 return self._write_count
OLDNEW
« no previous file with comments | « build/download_utils.py ('k') | build/file_tools.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698