Remove last references to obsolete py.code

Also remove some unnecessary references to py.builtin

Fix #305
This commit is contained in:
Bruno Oliveira
2018-07-23 17:33:59 -03:00
parent 55dc257f1c
commit fe1f239612
7 changed files with 25 additions and 19 deletions

View File

@@ -6,7 +6,7 @@
processes) otherwise changes to source code can crash
the controlling process which should best never happen.
"""
from __future__ import print_function
import py
import pytest
import sys
@@ -60,7 +60,7 @@ class RemoteControl(object):
def trace(self, *args):
if self.config.option.debug:
msg = " ".join([str(x) for x in args])
py.builtin.print_("RemoteControl:", msg)
print("RemoteControl:", msg)
def initgateway(self):
return execnet.makegateway("popen")
@@ -248,7 +248,7 @@ class StatRecorder(object):
if oldstat.mtime != curstat.mtime or \
oldstat.size != curstat.size:
changed = True
py.builtin.print_("# MODIFIED", path)
print("# MODIFIED", path)
if removepycfiles and path.ext == ".py":
pycfile = path + "c"
if pycfile.check():