Skip to content

Commit

Permalink
testpy: Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Dec 6, 2016
1 parent 55253f9 commit a444d26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,8 @@ def xx(pattern, target, s_from, s_to, mem, not_match,
targetp = strptr(target2)

# cut very long outputs (used for showing message)
if sys.version_info[0] < 3:
pattern = pattern2.decode(encoding, 'replace')
target = target2.decode(encoding, 'replace')
pattern = pattern2.decode(encoding, 'replace')
target = target2.decode(encoding, 'replace')
limit = 100
if len(pattern) > limit:
pattern = pattern[:limit] + "..."
Expand Down

0 comments on commit a444d26

Please sign in to comment.