[pypy-commit] pypy default: Simplify code.

mjacob pypy.commits at gmail.com
Sat Jan 9 12:48:42 EST 2016


Author: Manuel Jacob <me at manueljacob.de>
Branch: 
Changeset: r81645:090cb15bfa02
Date: 2016-01-09 18:41 +0100
http://bitbucket.org/pypy/pypy/changeset/090cb15bfa02/

Log:	Simplify code.

	The code returns False in any case. Also, the transactionsafe
	attribute is only ever used in the STM branch.

diff --git a/rpython/translator/backendopt/gilanalysis.py b/rpython/translator/backendopt/gilanalysis.py
--- a/rpython/translator/backendopt/gilanalysis.py
+++ b/rpython/translator/backendopt/gilanalysis.py
@@ -21,12 +21,8 @@
             self, graph, seen)
 
     def analyze_external_call(self, op, seen=None):
-        funcobj = op.args[0].value._obj
-        if getattr(funcobj, 'transactionsafe', False):
-            return False
-        else:
-            return False
-                
+        return False
+
     def analyze_simple_operation(self, op, graphinfo):
         return False
 


More information about the pypy-commit mailing list