Smallfix: Send print message to sys.stderr

remotes/origin/enhancement/email-actions
David Barragán Merino 2013-07-16 10:46:21 +02:00
parent a7104009d2
commit b0ed850da2
1 changed files with 3 additions and 1 deletions

View File

@ -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