소스 검색

replaced old style "print" with a new print function

Roman Nekhoroshev 12 년 전
부모
커밋
1918a8cb1e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      publish_subscribe.py

+ 1 - 1
publish_subscribe.py

@@ -49,7 +49,7 @@ class Subscriber:
         self.provider.subscribe(msg, self)
 
     def run(self, msg):
-        print "%s got %s" % (self.name, msg)
+        print("{} got {}".format(self.name, msg))
 
 
 def main():