nltk/nltk — pull request #417 by wroberts (2013-06-13 23:11:21+00:00)
Title: Fix detect_encoding regex in corpus.reader.xmldocs.XMLCorpusView

corpus.reader.xmldocs.XMLCorpusView includes a function to read the file encoding out of the XML declaration on the first line of a corpus file.

Unfortunately, this function relies on regular expressions which contain a simple syntax error. Instead of searching for r'