Python paramiko.py3compat() Examples

The following are 1 code examples of paramiko.py3compat(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module paramiko , or try the search function .
Example #1
Source File: sftpclone.py    From sftpclone with MIT License 5 votes vote down vote up
def path_join(*args):
    """
    Wrapper around `os.path.join`.
    Makes sure to join paths of the same type (bytes).
    """
    args = (paramiko.py3compat.u(arg) for arg in args)
    return os.path.join(*args)