django 3.2: get rid of six.print_ (#64430)

This commit is contained in:
Emmanuel Cazenave 2022-06-09 17:34:37 +02:00
parent dc9e7a0d42
commit 3241234ca6
1 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ from datetime import datetime
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
from django.db import transaction
from django.utils.six import print_
from docbow_project.docbow.models import Document, Inbox
from docbow_project.docbow.utils import date_to_aware_datetime
@ -53,8 +52,8 @@ class Command(BaseCommand):
docs = docs.filter(date__lt=enddate)
if verbose:
print_('Prepare forwarding', docs.count(), 'from', from_user, 'to', to_user)
print('Prepare forwarding', docs.count(), 'from', from_user, 'to', to_user)
for doc in docs:
doc.forward(doc.sender, [], [to_user])
if verbose:
print_('Forward ', doc)
print('Forward ', doc)