Make simple not if condition more pythonic

This commit is contained in:
Kristóf Tóth 2018-04-14 21:07:33 +02:00
parent 586c435cc2
commit e2bb126e6f

View File

@ -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