Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Fixing compatibility with python3 #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions py-src/ltmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def asUnicode(s):
return str(s)

def ensureUtf(s):
if type(s) == unicode:
try:
return s.encode('utf8', 'ignore')
else:
except:
return str(s)

def findLoc(body, line, total):
Expand Down