Author: Tim Felgentreff <timfelgentr...@gmail.com> Branch: Changeset: r86421:6774c47a23c1 Date: 2016-08-22 14:04 +0200 http://bitbucket.org/pypy/pypy/changeset/6774c47a23c1/
Log: fix attrs test in vmprof for empty attrs lists diff --git a/rpython/rlib/rvmprof/rvmprof.py b/rpython/rlib/rvmprof/rvmprof.py --- a/rpython/rlib/rvmprof/rvmprof.py +++ b/rpython/rlib/rvmprof/rvmprof.py @@ -91,7 +91,7 @@ immut = CodeClass.__dict__.get('_immutable_fields_', []) CodeClass._immutable_fields_ = list(immut) + ['_vmprof_unique_id'] attrs = CodeClass.__dict__.get('_attrs_', None) - if attrs: + if attrs is not None: CodeClass._attrs_ = list(attrs) + ['_vmprof_unique_id'] self._code_classes.add(CodeClass) # _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit