summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-07-11 17:37:54 (GMT)
committerRichard Maw <richard.maw@codethink.co.uk>2014-07-11 17:37:54 (GMT)
commit40a5c752de62dd1b3ef3ec0850f1f24e7af67052 (patch)
tree960834307ff18840454a8c1dd6ad01376aecb89d
parent1a5e3e748a5ea4f48e3e88fa3859db4c186d6ba5 (diff)
downloadmorph-baserock/richardmaw/bugfix/unicode-safe-paths.tar.gz
Allow non-unicode paths to be hardlinked into staging areasbaserock/richardmaw/bugfix/unicode-safe-paths
Parts of the morphology go into the name of the staging area, so it helps to convert them into a str, so later attempts to join it with another string don't result in a unicode string. pyfilesystem insists that file paths must be unicode. It is incorrect, but we passed something unicode compatible in in the first place, so we can get away with converting it back to a bytestring.