Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions plumbum/machines/ssh_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ def nohup(self, command):
allowing the command to run "detached" from its controlling TTY or parent.
Does not return anything. Depreciated (use command.nohup or daemonic_popen).
"""
warnings.warn(
"Use .nohup on the command or use daemonic_popen)", DeprecationWarning
)
warnings.warn("Use .nohup on the command or use daemonic_popen)", FutureWarning)
self.daemonic_popen(command, cwd=".", stdout=None, stderr=None, append=False)

def daemonic_popen(self, command, cwd=".", stdout=None, stderr=None, append=True):
Expand Down
8 changes: 4 additions & 4 deletions plumbum/path/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def name(self):
@property
def basename(self):
"""Included for compatibility with older Plumbum code"""
warnings.warn("Use .name instead", DeprecationWarning)
warnings.warn("Use .name instead", FutureWarning)
return self.name

@abstractproperty
Expand Down Expand Up @@ -200,7 +200,7 @@ def is_dir(self):

def isdir(self):
"""Included for compatibility with older Plumbum code"""
warnings.warn("Use .is_dir() instead", DeprecationWarning)
warnings.warn("Use .is_dir() instead", FutureWarning)
return self.is_dir()

@abstractmethod
Expand All @@ -209,12 +209,12 @@ def is_file(self):

def isfile(self):
"""Included for compatibility with older Plumbum code"""
warnings.warn("Use .is_file() instead", DeprecationWarning)
warnings.warn("Use .is_file() instead", FutureWarning)
return self.is_file()

def islink(self):
"""Included for compatibility with older Plumbum code"""
warnings.warn("Use is_symlink instead", DeprecationWarning)
warnings.warn("Use is_symlink instead", FutureWarning)
return self.is_symlink()

@abstractmethod
Expand Down