(self, index)
Get environment (bytes) 'key=value' or b'', by zero-based index.
Get environment (bytes) 'key=value' or b'', by zero-based index.
Get environment ( bytes ) key = value or b by zero - based index .
def _getenv_item(self, index):
        """Get environment (bytes) 'key=value' or b'', by zero-based index."""
        envlist = list(iterenvu())
        try:
            ukey = envlist[index]
        except IndexError:
            return b''
        else:
            key = self._codepage.unicode_to_bytes(ukey)
            value = self._codepage.unicode_to_bytes(getenvu(ukey, u''))
            return b'%s=%s' % (key, value)
def _getenv_item ( self , index ) : envlist = list ( iterenvu ( ) ) try : ukey = envlist [ index ] except IndexError : return b'' else : key = self . _codepage . unicode_to_bytes ( ukey ) value = self . _codepage . unicode_to_bytes ( getenvu ( ukey , u'' ) ) return b'%s=%s' % ( key , value )