def extension_allowed(self, ext):
return ((ext in self.config.allow) or<EOL>(ext in self.extensions and ext not in self.config.deny))<EOL>
This determines whether a specific extension is allowed. It is called
by `file_allowed`, so if you override that but still want to check
extensions, call back into this.

:param ext: The extension to check, without the dot.