mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 16:41:32 +00:00
Make simple not if condition more pythonic
This commit is contained in:
parent
586c435cc2
commit
e2bb126e6f
@ -58,7 +58,7 @@ class FileManager: # pylint: disable=too-many-instance-attributes
|
||||
|
||||
@filename.setter
|
||||
def filename(self, filename):
|
||||
if not filename in self.files:
|
||||
if filename not in self.files:
|
||||
raise EnvironmentError('No such file in workdir!')
|
||||
self._filename = filename
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user