##// END OF EJS Templates
Convert filename to bytes in getlines....
Convert filename to bytes in getlines. Most files in linecache are stored with the filename as a bytestring (py2.x). When calling getlines with a unicode filename there will be implicit conversions using ascii that fails. This is avoided by an explicit conversion using the filesystem encoding before calling getlines.
Jörgen Stenarson -
r8335:50c631dd
Show More