[TxMt] Re: Pycheckmate.py throws IndexError in Python bundle

Jay Soffian jaysoffian at gmail.com
Fri Nov 20 15:16:34 UTC 2009


On Tue, Nov 17, 2009 at 12:12 PM, Allan Odgaard
<mailinglist at textmate.org> wrote:
> I looked into this, and we only have 4 uses of $Revision$ in all the
> bundles and since the mirror never went “automatic” I think we should
> just remove this and use other means to keep a revision number.
>
> IOW would be nice if you’ll update the script to not use $Revision$.

I seem to have lost access to Authentication realm:
<http://svn.textmate.org:80> TextMate Bundles

(To be clear, I've lost track of my username/password.). So here's the
diff in-line and attached in-case gmail mangles it.

j.

---snip---
Index: pycheckmate.py
===================================================================
--- pycheckmate.py	(revision 11832)
+++ pycheckmate.py	(working copy)
@@ -23,7 +23,7 @@
 #   Before sending updates to this code, please make sure you have the latest
 #   version: http://macromates.com/wiki/pmwiki?n=Main.SubversionCheckout

-__version__ = "$Revision$"
+__version__ = "1.0"

 import sys
 import os
@@ -343,8 +343,7 @@

 def main(script_path):
     checker_bin, checker_opts, checker_ver = find_checker_program()
-    my_revision = __version__.split()[1]
-    version_string = "PyCheckMate r%s – %s" % (my_revision, checker_ver)
+    version_string = "PyCheckMate %s – %s" % (__version__, checker_ver)
     warning_string = ""
     if not checker_bin:
         href_format = \
---snip---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pycheckmate.py.patch
Type: application/octet-stream
Size: 797 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20091120/f9428059/attachment.patch>


More information about the textmate mailing list