#NEWLINE# def should_use_pty( self , pty , fallback ) : #NEWLINE# #INDENT# '\n        Should execution attempt to use a pseudo-terminal?\n\n        :param bool pty:\n            Whether the user explicitly asked for a pty.\n        :param bool fallback:\n            Whether falling back to non-pty execution should be allowed, in\n            situations where ``pty=True`` but a pty could not be allocated.\n        ' #NEWLINE# return pty