Crash when viewing assembly file in commit dialog
Created originally on Bitbucket by Anonymous
Viewing a file written in assembly language from the commit dialog produces the following crash. This is a bug in the bundled version of Pygments (specifically in the GasLexer) that has already been fixed in their tree. Can you incorporate this fix so that we don't have to wait until their next stable version?
{{{ #!python ** Mercurial version (1.9+10-e9264b45237d). TortoiseHg version (2.1.1) ** Command: --nofork commit ** CWD: ** Extensions loaded: mq, record ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] ** Windows version: (6, 1, 7601, 2, 'Service Pack 1') ** Processor architecture: x64 ** Qt-4.7.1 PyQt-4.8.3 Traceback (most recent call last): File "tortoisehg\hgqt\commit.pyo", line 432, in fileDisplayed File "pygments\lexers__init__.pyo", line 183, in guess_lexer_for_filename File "pygments\util.pyo", line 120, in text_analyse TypeError: float() argument must be a string or a number
}}}