<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,31 +9,33 @@ H_FILES.map! {|name| name.index('.') ? name : name+&quot;.xml&quot;}
 H_TESTS = H_FILES.map {|arg| Dir[File.join('test/data/filter',arg)]}
 
 # test cases are in Python syntax, convert to something that eval will accept
-def python2ruby(expr, source)
-  # unicode strings
-  expr.gsub! &quot; u'&quot;, &quot; '&quot;
-  expr.gsub! ' u&quot;', ' &quot;'
+class TestCaseConverter
+  def self.python2ruby(expr, source)
+    # unicode strings
+    expr.gsub! &quot; u'&quot;, &quot; '&quot;
+    expr.gsub! ' u&quot;', ' &quot;'
 
-  # triple strings
-  expr.gsub! /&quot;&quot;&quot;(.*?)&quot;&quot;&quot;/, '%q{\1}'
+    # triple strings
+    expr.gsub! /&quot;&quot;&quot;(.*?)&quot;&quot;&quot;/, '%q{\1}'
 
-  # dict to hash
-  expr.gsub! &quot;': '&quot;, &quot;' =&gt; '&quot;
+    # dict to hash
+    expr.gsub! &quot;': '&quot;, &quot;' =&gt; '&quot;
 
-  # const to variable
-  expr.gsub! &quot;Items[&quot;, &quot;items[&quot;
-  expr.gsub! &quot;Channels[&quot;, &quot;channels[&quot;
+    # const to variable
+    expr.gsub! &quot;Items[&quot;, &quot;items[&quot;
+    expr.gsub! &quot;Channels[&quot;, &quot;channels[&quot;
 
-  # true
-  expr = &quot;true&quot; if expr == &quot;1&quot;
+    # true
+    expr = &quot;true&quot; if expr == &quot;1&quot;
 
-  # differences in XML/URI serializations
-  name = source.split('/').last.split('.').first
-  expr.sub!('&amp;quot;','%22') if name == 'missing_quote_in_attr'
-  expr.sub! '&amp;gt;', '&gt;' if name == 'tag_in_attr'
-  expr.gsub!('&quot;', &quot;\\\\'&quot;).gsub!('&amp;quot;','&quot;') if name == 'quote_in_attr'
+    # differences in XML/URI serializations
+    name = source.split('/').last.split('.').first
+    expr.sub!('&amp;quot;','%22') if name == 'missing_quote_in_attr'
+    expr.sub! '&amp;gt;', '&gt;' if name == 'tag_in_attr'
+    expr.gsub!('&quot;', &quot;\\\\'&quot;).gsub!('&amp;quot;','&quot;') if name == 'quote_in_attr'
 
-  expr
+    expr
+  end
 end
 
 require 'planet/formatter'
@@ -59,7 +61,7 @@ class HamlTestCase &lt; Test::Unit::TestCase
       case testdata
         # for .xml files
         when /Description:\s*(.*?)\s*Expect:\s*(.*)\s*/
-          desc = python2ruby($2, file)
+          desc = TestCaseConverter.python2ruby($2, file)
           doc = Planet.harvest(file)
           output = HamlFormatter.new.haml_info(doc)
           channels = output['channels']
@@ -67,7 +69,7 @@ class HamlTestCase &lt; Test::Unit::TestCase
 
         # for .ini files... any xml will do
         when /Description:\s*(.*?)\s*; Expect:\s*(.*)\s*/
-          desc = python2ruby($2, file)
+          desc = TestCaseConverter.python2ruby($2, file)
           Planet.config.read file
           doc = Planet.harvest('test/data/filter/haml/new_channel.xml')
           output = HamlFormatter.new.haml_info(doc)</diff>
      <filename>test/haml.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a4c9e7e1e7c6d5e675a6a6ceddc9150ae87ff746</id>
    </parent>
  </parents>
  <author>
    <name>Jim Holt</name>
    <email>jim.holt3@gmail.com</email>
  </author>
  <url>http://github.com/joshu/mars/commit/127bdf5d62b9f25fa140dc9b73294e99fbe87d71</url>
  <id>127bdf5d62b9f25fa140dc9b73294e99fbe87d71</id>
  <committed-date>2008-04-12T19:40:32-07:00</committed-date>
  <authored-date>2008-04-12T19:40:32-07:00</authored-date>
  <message>removed rake/feedparser bug in haml.rb

top level method python2ruby in feedparser.rb was cloned to haml.rb. The haml version was interacting with the feedparser version</message>
  <tree>2a92a1bc2e161a5a0fc47ca02e343882dd373a35</tree>
  <committer>
    <name>Jim Holt</name>
    <email>jim.holt3@gmail.com</email>
  </committer>
</commit>
