[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:
fijal 2007-08-15 12:53:26 +02:00
parent a18a291dee
commit e722cb2db7
1 changed files with 2 additions and 3 deletions

View File

@ -68,9 +68,8 @@ class LocalPath(common.FSPathBase, PlatformMixin):
elif isinstance(path, str):
self.strpath = os.path.abspath(os.path.normpath(str(path)))
else:
raise ValueError(
"can only pass None, Path instances "
"or non-empty strings to LocalPath")
raise ValueError("can only pass None, Path instances "
"or non-empty strings to LocalPath")
assert isinstance(self.strpath, str)
return self