<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,7 +7,7 @@ import re
 import getopt
 
 def usage():
-    print &quot;&quot;&quot;twasciiart.py accepts text sent via stdin, with optional arguments:
+    print &gt;&gt; sys.stdout &quot;&quot;&quot;twasciiart.py accepts text sent via stdin, with optional arguments:
 echo &quot;test&quot; | ./twasciiart.py -u user42 -p somepass123 [-l -d]
 -u --username : twitter username
 -p --password : twitter password
@@ -54,7 +54,7 @@ def main(argv):
         elif opt in (&quot;-r&quot;, &quot;--replacer&quot;):
             replacer = arg
     if not username or not password:
-        print &quot;username and password are required&quot;
+        print &gt;&gt; sys.stderr &quot;username and password are required&quot;
         usage()
         sys.exit(2)
     tag = (&quot; #%s&quot; % tag) if tag else &quot;&quot;
@@ -63,14 +63,14 @@ def main(argv):
     tw = Api(username=username, password=password)
 
     if not len(sys.stdin):
-        print &quot;No input from stdin&quot;
+        print &gt;&gt; sys.stderr &quot;No input from stdin&quot;
         usage()
         sys.exit(2)
 
     for l in sys.stdin.readlines():
             line = e.sub(r'\s', replacer, line)
             if len(line) &gt; length:
-                    print &quot;Lines too long to fit in a single tweet, change lines (or hashtag if present&quot;
+                    print &gt;&gt; sys.stderr &quot;Lines too long to fit in a single tweet, change lines (or hashtag if present&quot;
                     usage()
                     sys.exit(2)
             else:
@@ -79,10 +79,10 @@ def main(argv):
     if tweets:
             for i, tweet in enumerate(tweets):
                     time.sleep(delay)
-                    print 'Sending tweet %d of %d: &quot;%s&quot;' % (i, len(tweets), tweet)
+                    print &gt;&gt; sys.stdout 'Sending tweet %d of %d: &quot;%s&quot;' % (i, len(tweets), tweet)
                     tw.PostUpdate(tweet)
-                    print &quot;Sent!&quot;
-    print &quot;Done.&quot;
+                    print &gt;&gt; sys.stdout &quot;Sent!&quot;
+    print &gt;&gt; sys.stdout &quot;Done.&quot;
 
 if __name__ == &quot;__main__&quot;:
         main(sys.argv[1:])</diff>
      <filename>twasciiart.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b7c7c33d6b6f395c9256ef9aaec356427859ae69</id>
    </parent>
  </parents>
  <author>
    <name>Wesley Mason</name>
    <email>wes@1stvamp.org</email>
  </author>
  <url>http://github.com/1stvamp/twasciiart/commit/71b9ddd4685f0931c06933f3fb5e2c18cfd25d03</url>
  <id>71b9ddd4685f0931c06933f3fb5e2c18cfd25d03</id>
  <committed-date>2009-10-12T23:37:52-07:00</committed-date>
  <authored-date>2009-10-12T23:37:52-07:00</authored-date>
  <message>Changed prints to go to stdout and stderr where appropriate</message>
  <tree>03c688050be2a23c2854470bbd69267acba49361</tree>
  <committer>
    <name>Wesley Mason</name>
    <email>wes@1stvamp.org</email>
  </committer>
</commit>
