File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3939- issue2550993: fixed edit CSV action to update restored items to the
4040 new value instead of restoring with the previous value (Christof
4141 Meerwald)
42+ - issue2550994: avoid breakage caused by use of backports of Python 3
43+ configparser module to Python 2. (Joseph Myers)
4244
4345
44462018-07-13 1.6.0
Original file line number Diff line number Diff line change 22#
33__docformat__ = "restructuredtext"
44
5- try :
5+ # Some systems have a backport of the Python 3 configparser module to
6+ # Python 2: <https://pypi.org/project/configparser/>. That breaks
7+ # Roundup if used with Python 2 because it generates unicode objects
8+ # where not expected by the Python code. Thus, a version check is
9+ # used here instead of try/except.
10+ import sys
11+ if sys .version_info [0 ] > 2 :
612 import configparser # Python 3
7- except ImportError :
13+ else :
814 import ConfigParser as configparser # Python 2
915
1016import getopt
1117import imp
1218import logging , logging .config
1319import os
1420import re
15- import sys
1621import time
1722import smtplib
1823
You can’t perform that action at this time.
0 commit comments