Don't generate a list of keys for a containment test.
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 06:25:32 +0000 (06:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 06:25:32 +0000 (06:25 -0000)
svn path=/main/trunk/; revision=6909

pym/emerge/__init__.py

index abce72bb8474edeb4395dfefb52fb956a1073172..031691be62e3e99b750536ab82946280b93105d4 100644 (file)
@@ -208,7 +208,7 @@ def emergelog(xterm_titles, mystr, short_msg=None):
        if xterm_titles:
                if short_msg == None:
                        short_msg = mystr
-               if "HOSTNAME" in os.environ.keys():
+               if "HOSTNAME" in os.environ:
                        short_msg = os.environ["HOSTNAME"]+": "+short_msg
                xtermTitle(short_msg)
        try: