Skip to content

Commit

Permalink
chore: intensify warning for eventual removals (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Dec 2, 2021
1 parent 666349e commit a11ba7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
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

0 comments on commit a11ba7f

Please sign in to comment.