<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,5 +23,8 @@ def show_book(data):
 
 if __name__ == '__main__':
     source = sys.argv[1]
-    data = get_from_archive(source)
+    if ':' in source:
+        data = get_from_archive(source)
+    else:
+        data = open(source).read()
     show_book(data)</diff>
      <filename>openlibrary/catalog/marc/cmdline.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fd685b42a1967d403e5a912288e0f434e06efd34</id>
    </parent>
  </parents>
  <author>
    <name>Edward Betts</name>
    <email>edward@archive.org</email>
  </author>
  <url>http://github.com/openlibrary/openlibrary/commit/9a4ff5565aabff2e9c1eb3e20658d5d07ecb1825</url>
  <id>9a4ff5565aabff2e9c1eb3e20658d5d07ecb1825</id>
  <committed-date>2009-10-08T02:46:29-07:00</committed-date>
  <authored-date>2009-10-08T02:46:29-07:00</authored-date>
  <message>optionally read MARC from local file</message>
  <tree>7307a944c49e32f2aab4e70ab13327f0ef4f405b</tree>
  <committer>
    <name>Edward Betts</name>
    <email>edward@archive.org</email>
  </committer>
</commit>
