#NEWLINE# def bytesEnviron( ) : #NEWLINE# #INDENT# '\n    Return a L{dict} of L{os.environ} where all text-strings are encoded into\n    L{bytes}.\n    ' #NEWLINE# if ( not _PY3 ) : #NEWLINE# #INDENT# return dict ( os . environ ) #NEWLINE# #UNINDENT# target = dict ( ) #NEWLINE# for ( x , y ) in os . environ . items ( ) : #NEWLINE# #INDENT# target [ os . environ . encodekey ( x ) ] = os . environ . encodevalue ( y ) #NEWLINE# #UNINDENT# return target