[svn r45671] Change lines for code.txt not to fail on cpy2.5
Problem is described in tests (skipped) anyway, hence there is no point in failing code snippet in documentation --HG-- branch : trunk
This commit is contained in:
parent
a18a291dee
commit
e722cb2db7
|
@ -68,9 +68,8 @@ class LocalPath(common.FSPathBase, PlatformMixin):
|
||||||
elif isinstance(path, str):
|
elif isinstance(path, str):
|
||||||
self.strpath = os.path.abspath(os.path.normpath(str(path)))
|
self.strpath = os.path.abspath(os.path.normpath(str(path)))
|
||||||
else:
|
else:
|
||||||
raise ValueError(
|
raise ValueError("can only pass None, Path instances "
|
||||||
"can only pass None, Path instances "
|
"or non-empty strings to LocalPath")
|
||||||
"or non-empty strings to LocalPath")
|
|
||||||
assert isinstance(self.strpath, str)
|
assert isinstance(self.strpath, str)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue