From b0ed850da2573cd8a99fc9f628f2da8a3bc97c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Tue, 16 Jul 2013 10:46:21 +0200 Subject: [PATCH] Smallfix: Send print message to sys.stderr --- greenmine/base/monkey.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/greenmine/base/monkey.py b/greenmine/base/monkey.py index b947d05f..1af68054 100644 --- a/greenmine/base/monkey.py +++ b/greenmine/base/monkey.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +from __future__ import print_function +import sys from rest_framework import views from rest_framework import status, exceptions @@ -27,5 +29,5 @@ def patch_api_view(): view.cls_instance = cls(**initkwargs) return view - print "Patching APIView" + print("Patching APIView", file=sys.stderr) views.APIView = APIView