<s> from app . util . network import Network <EOL> from app . util . shell . local_shell_client import LocalShellClient <EOL> from app . util . shell . remote_shell_client import RemoteShellClient <EOL> class ShellClientFactory ( object ) : <EOL> @ classmethod <EOL> def create ( cls , host , user ) : <EOL> if Network . are_hosts_same ( host , '<STR_LIT:localhost>' ) : <EOL> return LocalShellClient ( host , user ) <EOL> else : <EOL> return RemoteShellClient ( host , user ) </s>
