[pypy-svn] r56601 - pypy/dist/pypy/lib

arigo at codespeak.net arigo at codespeak.net
Wed Jul 16 22:52:24 CEST 2008


Author: arigo
Date: Wed Jul 16 22:52:23 2008
New Revision: 56601

Modified:
   pypy/dist/pypy/lib/_pypy_interact.py
Log:
And now for something completely different


Modified: pypy/dist/pypy/lib/_pypy_interact.py
==============================================================================
--- pypy/dist/pypy/lib/_pypy_interact.py	(original)
+++ pypy/dist/pypy/lib/_pypy_interact.py	Wed Jul 16 22:52:23 2008
@@ -5,8 +5,14 @@
 
 def interactive_console(mainmodule=None):
     try:
-        import _pypy_irc_topic
-        print "``%s''" % (_pypy_irc_topic.some_topic(),)
+        from _pypy_irc_topic import some_topic
+        text = "And now for something completely different: ``%s''" % (
+            some_topic(),)
+        if len(text) >= 80:
+            i = text[:80].rfind(' ')
+            print text[:i]
+            text = text[i+1:]
+        print text
     except ImportError:
         pass
     try:



More information about the Pypy-commit mailing list