John Cavanaugh schrieb:
> Ill cut to the chase and include the patch that resolved the issue.
> 
> 
> --- a/sphinx/environment.py     Thu Apr 09 21:38:36 2009 +0200
> +++ b/sphinx/environment.py     Fri Apr 10 01:42:26 2009 -0700
> @@ -534,7 +534,7 @@
>          """
>          Custom decoding error handler that warns and replaces.
>          """
> -        linestart = error.object.rfind('\n', None, error.start)
> +        linestart = error.object.rfind('\n', 0, error.start)
>          lineend = error.object.find('\n', error.start)
>          if lineend == -1: lineend = len(error.object)
>          lineno = error.object.count('\n', 0, error.start) + 1
> 
> 
> The problem I was seeing is listed below.   The solution itself makes
> no sense to me at all, because the error message itself says None is
> valid.   All I know is if I make the code change everything works
> again.

Thank you! Applied to 0.6 and trunk branches.

Georg

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to