[Twisted-Python] twisted.cred documentation bug?

Glyph glyph at twistedmatrix.com
Sun Aug 19 17:28:02 EDT 2012

On Aug 19, 2012, at 1:35 PM, Matthew Pounsett <matt at conundrum.com> wrote:

> I've been reading the cred docs, and think I may have spotted a typo.  Near the end of <http://twistedmatrix.com/documents/current/core/howto/cred.html>, in the code sample describing creating a cred plugin's factory, there is this method:
>   # This will be called once per command-line.
>   def generateChecker(self, argstring=""):
>       argdict = dict((x.split('=') for x in argstring.split(':')))
>       return SpecialChecker(**dict)
> I think that return should actually be for **argdict, yes?

Quite so.  Want to file a ticket?


More information about the Twisted-Python mailing list