projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a35d2e
)
setup: fix a cut-and-paste error in the fallback to parsing /etc/lsb-release
author
Zooko O'Whielacronx
<zooko@zooko.com>
Tue, 23 Sep 2008 16:55:51 +0000
(09:55 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Tue, 23 Sep 2008 16:55:51 +0000
(09:55 -0700)
src/allmydata/__init__.py
patch
|
blob
|
history
diff --git
a/src/allmydata/__init__.py
b/src/allmydata/__init__.py
index 02ae4fb50725b65180224d7c6af80726a91f8878..08efc3b8a7627bddce1701581c3c66e2be1653af 100644
(file)
--- a/
src/allmydata/__init__.py
+++ b/
src/allmydata/__init__.py
@@
-88,11
+88,11
@@
def get_linux_distro():
try:
etclsbrel = open("/etc/lsb-release", "rU")
- for
in
line in etclsbrel:
- m = _distributor_id_file_re.search(
p.stdout.read()
)
+ for line in etclsbrel:
+ m = _distributor_id_file_re.search(
line
)
if m:
_distname = m.group(1).strip()
- m = _release_
cmdline_re.search(p.stdout.read()
)
+ m = _release_
file_re.search(line
)
if m:
_version = m.group(1).strip()
except EnvironmentError: