Author: Armin Rigo <[email protected]>
Branch:
Changeset: r66067:85607df22ea3
Date: 2013-08-10 22:50 +0200
http://bitbucket.org/pypy/pypy/changeset/85607df22ea3/
Log: Partial backout of ab7580454b32.
diff --git a/rpython/memory/gc/env.py b/rpython/memory/gc/env.py
--- a/rpython/memory/gc/env.py
+++ b/rpython/memory/gc/env.py
@@ -131,13 +131,8 @@
# ---------- Linux2 ----------
-try:
- ARCH = os.uname()[4] # machine
-except (OSError, AttributeError):
- ARCH = ''
-
def get_L2cache_linux2():
- arch = ARCH # precomputed; the call to os.uname() is not translated
+ arch = os.uname()[4] # machine
if arch.endswith('86') or arch == 'x86_64':
return get_L2cache_linux2_cpuinfo()
if arch in ('alpha', 'ppc', 'ppc64'):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit