Mercurial > p > roundup > code
changeset 8562:9c3ec0a5c7fc
chore: remove __future print_funcion from code.
Not needed as of Python 3.
line wrap: on
line diff
--- a/detectors/irker.py Wed Apr 08 21:10:32 2026 -0400 +++ b/detectors/irker.py Wed Apr 08 21:39:40 2026 -0400 @@ -14,7 +14,6 @@ # channels = irc://chat.freenode.net/channelname # -from __future__ import print_function import re import json import socket
--- a/roundup/admin.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/admin.py Wed Apr 08 21:39:40 2026 -0400 @@ -20,8 +20,6 @@ """Administration commands for maintaining Roundup trackers. """ -from __future__ import print_function - __docformat__ = 'restructuredtext' import csv import getopt
--- a/roundup/backends/portalocker.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/backends/portalocker.py Wed Apr 08 21:39:40 2026 -0400 @@ -47,7 +47,6 @@ - Added return result """ -from __future__ import print_function __docformat__ = 'restructuredtext' import os
--- a/roundup/cgi/TAL/talgettext.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/cgi/TAL/talgettext.py Wed Apr 08 21:39:40 2026 -0400 @@ -33,7 +33,6 @@ found. """ -from __future__ import print_function import sys import time import getopt
--- a/roundup/cgi/cgitb.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/cgi/cgitb.py Wed Apr 08 21:39:40 2026 -0400 @@ -4,7 +4,6 @@ """Extended CGI traceback handler by Ka-Ping Yee, <ping@lfw.org>. """ -from __future__ import print_function __docformat__ = 'restructuredtext' import inspect
--- a/roundup/cgi/engine_jinja2.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/cgi/engine_jinja2.py Wed Apr 08 21:39:40 2026 -0400 @@ -29,7 +29,6 @@ https://github.com/mitsuhiko/jinja2/issues/174 """ -from __future__ import print_function import jinja2 import mimetypes import sys
--- a/roundup/date.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/date.py Wed Apr 08 21:39:40 2026 -0400 @@ -17,7 +17,6 @@ """Date, time and time interval handling. """ -from __future__ import print_function __docformat__ = 'restructuredtext' import calendar
--- a/roundup/dehtml.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/dehtml.py Wed Apr 08 21:39:40 2026 -0400 @@ -1,5 +1,3 @@ - -from __future__ import print_function import sys
--- a/roundup/demo.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/demo.py Wed Apr 08 21:39:40 2026 -0400 @@ -2,8 +2,6 @@ # # Copyright (c) 2003 Richard Jones (richard@mechanicalcat.net) # -from __future__ import print_function - import errno import getopt import os
--- a/roundup/dist/command/build.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/dist/command/build.py Wed Apr 08 21:39:40 2026 -0400 @@ -3,7 +3,6 @@ # All rights reserved. # For license terms see the file COPYING.txt. # -from __future__ import print_function from roundup import msgfmt try: from setuptool.command.install import install as base
--- a/roundup/init.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/init.py Wed Apr 08 21:39:40 2026 -0400 @@ -17,7 +17,6 @@ # """Init (create) a roundup instance. """ -from __future__ import print_function __docformat__ = 'restructuredtext' import email.parser
--- a/roundup/mailgw.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/mailgw.py Wed Apr 08 21:39:40 2026 -0400 @@ -92,7 +92,6 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. """ -from __future__ import print_function __docformat__ = 'restructuredtext' import base64
--- a/roundup/pygettext.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/pygettext.py Wed Apr 08 21:39:40 2026 -0400 @@ -15,8 +15,6 @@ # 2024-07-13 John Rouillard (rouilj@users.sourceforge.net) # Converted from python 2. -from __future__ import print_function - # for selftesting try: import fintl
--- a/roundup/rest.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/rest.py Wed Apr 08 21:39:40 2026 -0400 @@ -5,8 +5,6 @@ and/or modify under the same terms as Python. """ -from __future__ import print_function - import hmac import json import logging
--- a/roundup/scripts/roundup_gettext.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/scripts/roundup_gettext.py Wed Apr 08 21:39:40 2026 -0400 @@ -4,8 +4,6 @@ """Extract translatable strings from tracker templates and detectors/extensions""" -from __future__ import print_function - import os import os.path as osp import sys
--- a/roundup/scripts/roundup_mailgw.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/scripts/roundup_mailgw.py Wed Apr 08 21:39:40 2026 -0400 @@ -16,8 +16,6 @@ """Command-line script stub that calls the roundup.mailgw. """ -from __future__ import print_function - __docformat__ = 'restructuredtext'
--- a/roundup/scripts/roundup_server.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/scripts/roundup_server.py Wed Apr 08 21:39:40 2026 -0400 @@ -17,7 +17,6 @@ """Command-line script that runs a server over roundup.cgi.client. """ -from __future__ import print_function __docformat__ = 'restructuredtext' import base64 # decode icon
--- a/roundup/scripts/roundup_xmlrpc_server.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/scripts/roundup_xmlrpc_server.py Wed Apr 08 21:39:40 2026 -0400 @@ -7,8 +7,6 @@ # --- patch sys.path to make sure 'import roundup' finds correct version -from __future__ import print_function - import base64 import getopt import os.path as osp
--- a/roundup/support.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/support.py Wed Apr 08 21:39:40 2026 -0400 @@ -2,7 +2,6 @@ places in Roundup code. """ -from __future__ import print_function __docformat__ = 'restructuredtext' import os, time, sys
--- a/roundup/test/tx_Source_detector.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/test/tx_Source_detector.py Wed Apr 08 21:39:40 2026 -0400 @@ -14,8 +14,6 @@ # Note that the calls are interleaved, but the proper # tx_Source is associated with the same ticket. -from __future__ import print_function - def tx_SourceCheckAudit(db, cl, nodeid, newvalues): ''' An auditor to print the value of the source of the
--- a/roundup/version_check.py Wed Apr 08 21:10:32 2026 -0400 +++ b/roundup/version_check.py Wed Apr 08 21:39:40 2026 -0400 @@ -1,7 +1,6 @@ #!/usr/bin/env python # Roundup requires Python 3.7+ as mentioned in doc\installation.txt -from __future__ import print_function import sys VERSION_NEEDED = (3, 7)
--- a/scripts/add-issue Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/add-issue Wed Apr 08 21:39:40 2026 -0400 @@ -8,7 +8,6 @@ user, or "admin" otherwise. ''' -from __future__ import print_function import sys, os, pwd from roundup import instance, mailgw, date
--- a/scripts/contributors.py Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/contributors.py Wed Apr 08 21:39:40 2026 -0400 @@ -7,8 +7,6 @@ """ -from __future__ import print_function - from subprocess import check_output # --- output settings
--- a/scripts/copy-user.py Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/copy-user.py Wed Apr 08 21:39:40 2026 -0400 @@ -15,8 +15,6 @@ (copies users 3, 4, 5, 6, 7, 8, 9, 10, 14 and 16) """ -from __future__ import print_function - import sys import roundup.instance
--- a/scripts/imapServer.py Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/imapServer.py Wed Apr 08 21:39:40 2026 -0400 @@ -30,7 +30,6 @@ Add an option for changing the uid/gid of the running process. """ -from __future__ import print_function import getpass import logging import imaplib
--- a/scripts/roundup-reminder Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/roundup-reminder Wed Apr 08 21:39:40 2026 -0400 @@ -27,8 +27,6 @@ TODO: possibly make this more general and configurable... ''' -from __future__ import print_function - import sys from email.mime.multipart import MIMEMultipart from email.utils import make_msgid
--- a/scripts/schema-dump.py Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/schema-dump.py Wed Apr 08 21:39:40 2026 -0400 @@ -14,9 +14,7 @@ [ ] lossless dump/restore cycle [ ] data dump and filtering with preserved -Works in Python 2 as well. """ -from __future__ import print_function __license__ = "Public Domain" __version__ = "1.1"
--- a/scripts/schema_diagram.py Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/schema_diagram.py Wed Apr 08 21:39:40 2026 -0400 @@ -10,7 +10,6 @@ # %> dot -Tps schema.dot -o schema.ps # %> gv schema.ps # -from __future__ import print_function import sys import roundup.instance
--- a/scripts/spam-remover Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/spam-remover Wed Apr 08 21:39:40 2026 -0400 @@ -22,7 +22,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from __future__ import print_function _doc = ''' %prog [options] Remove file attachment spam from a tracker:
--- a/scripts/weekly-report Wed Apr 08 21:10:32 2026 -0400 +++ b/scripts/weekly-report Wed Apr 08 21:39:40 2026 -0400 @@ -22,8 +22,6 @@ #2 - 491: Can you help me with Sanity #1 - 1995: Where is my Power plugs -from __future__ import print_function - import sys from roundup import date, instance
--- a/setup.py Wed Apr 08 21:10:32 2026 -0400 +++ b/setup.py Wed Apr 08 21:39:40 2026 -0400 @@ -18,8 +18,6 @@ # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -from __future__ import print_function - import os import sys from glob import glob
--- a/share/roundup/templates/devel/extensions/local_replace.py Wed Apr 08 21:10:32 2026 -0400 +++ b/share/roundup/templates/devel/extensions/local_replace.py Wed Apr 08 21:39:40 2026 -0400 @@ -1,4 +1,3 @@ -from __future__ import print_function import re hg_url_base = r'http://sourceforge.net/p/roundup/code/ci/'
--- a/share/roundup/templates/responsive/extensions/local_replace.py Wed Apr 08 21:10:32 2026 -0400 +++ b/share/roundup/templates/responsive/extensions/local_replace.py Wed Apr 08 21:39:40 2026 -0400 @@ -1,4 +1,3 @@ -from __future__ import print_function import re hg_url_base = r'http://sourceforge.net/p/roundup/code/ci/'
--- a/test/benchmark.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/benchmark.py Wed Apr 08 21:39:40 2026 -0400 @@ -21,7 +21,6 @@ """ -from __future__ import print_function import sys, os, time import importlib, signal, shutil
--- a/test/db_test_base.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/db_test_base.py Wed Apr 08 21:39:40 2026 -0400 @@ -15,7 +15,6 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. -from __future__ import print_function import unittest, os, shutil, errno, sys, time, pprint, os.path try:
--- a/test/test_actions.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/test_actions.py Wed Apr 08 21:39:40 2026 -0400 @@ -1,4 +1,3 @@ -from __future__ import print_function import unittest, copy from roundup import hyperdb
--- a/test/test_admin.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/test_admin.py Wed Apr 08 21:39:40 2026 -0400 @@ -4,7 +4,6 @@ # For license terms see the file COPYING.txt. # -from __future__ import print_function import difflib import errno import fileinput
--- a/test/test_cgi.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/test_cgi.py Wed Apr 08 21:39:40 2026 -0400 @@ -8,7 +8,6 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -from __future__ import print_function import unittest, os, shutil, errno, sys, difflib, re, io import pytest
--- a/test/test_instance.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/test_instance.py Wed Apr 08 21:39:40 2026 -0400 @@ -4,7 +4,6 @@ # For license terms see the file COPYING.txt. # -from __future__ import print_function import unittest, os, shutil, errno, sys, difflib from roundup import instance
--- a/test/test_security.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/test_security.py Wed Apr 08 21:39:40 2026 -0400 @@ -18,7 +18,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from __future__ import print_function import os import shutil import unittest
--- a/test/test_templating.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/test_templating.py Wed Apr 08 21:39:40 2026 -0400 @@ -1,4 +1,3 @@ -from __future__ import print_function import unittest import time
--- a/test/test_xmlrpc.py Wed Apr 08 21:10:32 2026 -0400 +++ b/test/test_xmlrpc.py Wed Apr 08 21:39:40 2026 -0400 @@ -4,7 +4,6 @@ # For license terms see the file COPYING.txt. # -from __future__ import print_function import unittest, os, shutil, errno, pytest, sys, difflib, re from contextlib import contextmanager
--- a/tools/base64 Wed Apr 08 21:10:32 2026 -0400 +++ b/tools/base64 Wed Apr 08 21:39:40 2026 -0400 @@ -1,4 +1,3 @@ #!/usr/bin/env python -from __future__ import print_function import zlib, base64, sys print(base64.encodestring(zlib.compress(sys.stdin.read())))
--- a/tools/load_tracker.py Wed Apr 08 21:10:32 2026 -0400 +++ b/tools/load_tracker.py Wed Apr 08 21:39:40 2026 -0400 @@ -5,7 +5,6 @@ Load up the indicated tracker with N issues and N/100 users. ''' -from __future__ import print_function import sys, os, random from roundup import instance
--- a/tools/migrate-queries.py Wed Apr 08 21:10:32 2026 -0400 +++ b/tools/migrate-queries.py Wed Apr 08 21:39:40 2026 -0400 @@ -7,7 +7,6 @@ leading ?; it is added by the 0.6.0 templating, so old queries lead to query URLs with a double leading ?? and a consequent 404 Not Found. ''' -from __future__ import print_function __author__ = 'James Kew <jkew@mediabright.co.uk>' import sys
