diff --git a/katcp/core.py b/katcp/core.py
index <HASH>..<HASH> 100644
--- a/katcp/core.py
+++ b/katcp/core.py
@@ -181,7 +181,7 @@ class Message(object):
             args = "(" + ", ".join(escaped_args) + ")"
         else:
             args = ""
-        return "<Message %(tp)s %(name)s %(args)s>" % locals()
+        return "<Message %s %s %s>" % (tp, name, args)
 
     def __eq__(self, other):
         if not isinstance(other, Message):
Avoid use of locals() in call in repr as being somewhat unexpected and fragile. :)

git-svn-id: <URL>