diff options
Diffstat (limited to 'Test/pydiff.py')
-rw-r--r-- | Test/pydiff.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Test/pydiff.py b/Test/pydiff.py index 407fe251..94267960 100644 --- a/Test/pydiff.py +++ b/Test/pydiff.py @@ -75,7 +75,8 @@ def preProcess(openFile, stripTrailingCR=False, ignoreAllSpace=False): # newline characters because this will create a mess when outputting the # diff. Is this the right behaviour? deleteChars=' \t' - translationTable = str.maketrans('','', deleteChars) + if sys.version_info.major >= 3: + translationTable = str.maketrans('','', deleteChars) copy = [ ] for line in original: |