Rev 4176: Fix obvious typos. in file:///home/vila/src/bzr/experimental/parallel-selftest/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Mon Mar 23 08:43:56 GMT 2009
At file:///home/vila/src/bzr/experimental/parallel-selftest/
------------------------------------------------------------
revno: 4176
revision-id: v.ladeuil+lp at free.fr-20090323084355-fp31zegykjbsep3v
parent: v.ladeuil+lp at free.fr-20090322174351-r28gl68v332a42dm
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: lifeless
timestamp: Mon 2009-03-23 09:43:55 +0100
message:
Fix obvious typos.
* bzrlib/tests/__init__.py:
(local_concurrency): Fix typo in mode.
(cpucount): We got the content, use it.
-------------- next part --------------
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2009-03-22 17:43:51 +0000
+++ b/bzrlib/tests/__init__.py 2009-03-23 08:43:55 +0000
@@ -2980,7 +2980,7 @@
def cpucount(content):
lines = content.splitlines()
prefix = 'processor'
- for line in file('/proc/cpuinfo', 'rb').readlines():
+ for line in lines:
if line.startswith(prefix):
concurrency = int(line[line.find(':')+1:-1]) + 1
return concurrency
@@ -2988,7 +2988,7 @@
def local_concurrency():
try:
- content = file('/proc/cpuinfo', rb).read()
+ content = file('/proc/cpuinfo', 'rb').read()
concurrency = cpucount(content)
except Exception, e:
concurrency = 1
More information about the bazaar-commits
mailing list