<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,7 +7,8 @@ import urllib2
 import re
 from urllib2 import HTTPError, URLError
 from flashbake.plugins import AbstractMessagePlugin
-import xml
+from xml.dom import minidom
+import os
 import os.path
 
 class Location(AbstractMessagePlugin):
@@ -52,7 +53,7 @@ class Location(AbstractMessagePlugin):
             location_xml = opener.open(urllib2.Request(for_ip)).read()
 
             # the weather API returns some nice, parsable XML
-            location_dom = xml.dom.minidom.parseString(location_xml)
+            location_dom = minidom.parseString(location_xml)
 
             # just interested in the conditions at the moment
             response = location_dom.getElementsByTagName(&quot;Response&quot;)
@@ -105,7 +106,7 @@ class Location(AbstractMessagePlugin):
         # look for flashbake directory
         fb_dir = os.path.join(home_dir, '.flashbake')
         if not os.path.exists(fb_dir):
-            os.path.mkdir(fb_dir)
+            os.mkdir(fb_dir)
         cache_file = open(os.path.join(fb_dir, 'ip_cache'), 'w')
         try:
             cache_file.write('ip_addr:%s\n' % ip_addr)</diff>
      <filename>flashbake/plugins/location.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9e7507d7e883291d3b37805fe6d94470e8891a18</id>
    </parent>
  </parents>
  <author>
    <name>Jack Moffitt</name>
    <email>jack@tortilla.(none)</email>
  </author>
  <url>http://github.com/commandline/flashbake/commit/b595729b238d62a9f99743f65465ac686a9fc3b6</url>
  <id>b595729b238d62a9f99743f65465ac686a9fc3b6</id>
  <committed-date>2009-05-11T21:29:43-07:00</committed-date>
  <authored-date>2009-05-11T21:29:43-07:00</authored-date>
  <message>Fix minor issues with location plugin.</message>
  <tree>a97dc6c022b0f3894199a2744870dfad11623f02</tree>
  <committer>
    <name>Jack Moffitt</name>
    <email>jack@tortilla.(none)</email>
  </committer>
</commit>
