mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Fix pycodestyle complaints
Apparently, pycodestyle updated itself to now check for invalid escape sequences, which only complain if the regex in use isn't a raw string (r"").
This commit is contained in:
parent
5c39fff51b
commit
5342db6ada
4 changed files with 6 additions and 5 deletions
|
|
@ -5,7 +5,7 @@ from .parsers import RasterisedDocumentParser
|
|||
|
||||
class ConsumerDeclaration:
|
||||
|
||||
MATCHING_FILES = re.compile("^.*\.(pdf|jpe?g|gif|png|tiff?|pnm|bmp)$")
|
||||
MATCHING_FILES = re.compile(r"^.*\.(pdf|jpe?g|gif|png|tiff?|pnm|bmp)$")
|
||||
|
||||
@classmethod
|
||||
def handle(cls, sender, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue