~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle-put-message

  • Committer: Aaron Bentley
  • Date: 2012-01-10 14:44:37 UTC
  • mto: (6.1.30 trunk)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: aaron@canonical.com-20120110144437-8twijem7btu6664y
Test message path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    """An error caused by a user mistake."""
7
7
 
8
8
def main(*args):
9
 
    if len(args) != 2:
 
9
    if len(args) != 1:
10
10
        raise UserError("Wrong number of arguments supplied.")
11
 
    grackle = client.GrackleClient('localhost', 8123)
12
 
    grackle.put_message(args[0], args[1], sys.stdin)
 
11
    client.put_message(args[0], sys.stdin)
13
12
 
14
13
 
15
14
if __name__ == '__main__':