Index: Lib/http/server.py =================================================================== --- Lib/http/server.py (revision 79901) +++ Lib/http/server.py (working copy) @@ -1023,8 +1023,9 @@ if ua: env['HTTP_USER_AGENT'] = ua co = filter(None, self.headers.get_all('cookie', [])) - if co: - env['HTTP_COOKIE'] = ', '.join(co) + cookie_str = ', '.join(co) + if cookie_str: + env['HTTP_COOKIE'] = cookie_str # XXX Other HTTP_* headers # Since we're setting the env in the parent, provide empty # values to override previously set values Index: Lib/distutils/command/sdist.py =================================================================== --- Lib/distutils/command/sdist.py (revision 79901) +++ Lib/distutils/command/sdist.py (working copy) @@ -277,8 +277,7 @@ optional = ['test/test*.py', 'setup.cfg'] for pattern in optional: files = filter(os.path.isfile, glob(pattern)) - if files: - self.filelist.extend(files) + self.filelist.extend(files) # build_py is used to get: # - python modules Index: Lib/platform.py =================================================================== --- Lib/platform.py (revision 79901) +++ Lib/platform.py (working copy) @@ -1081,7 +1081,7 @@ except AttributeError: no_os_uname = 1 - if no_os_uname or not filter(None, (system, node, release, version, machine)): + if no_os_uname or not list(filter(None, (system, node, release, version, machine))): # Hmm, no there is either no uname or uname has returned #'unknowns'... we'll have to poke around the system then. if no_os_uname: