PEP8 cleanups
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -21,4 +21,4 @@ try:
|
||||
except NameError:
|
||||
FileNotFoundErrorException = IOError
|
||||
else:
|
||||
FileNotFoundErrorException = FileNotFoundError
|
||||
FileNotFoundErrorException = FileNotFoundError # NOQA
|
||||
|
||||
@@ -12,9 +12,8 @@ from django.utils.datastructures import MultiValueDict
|
||||
from django.utils.http import (
|
||||
urlencode as django_urlencode, urlquote as django_urlquote
|
||||
)
|
||||
from django.utils.six.moves import reduce as reduce_function, xmlrpc_client
|
||||
from django.utils.six.moves import reduce as reduce_function
|
||||
|
||||
import mayan
|
||||
from mayan.apps.common.compat import dict_type, dictionary_type
|
||||
|
||||
from .literals import DJANGO_SQLITE_BACKEND
|
||||
|
||||
@@ -8,7 +8,6 @@ from mayan.apps.common.menus import menu_object, menu_secondary
|
||||
from mayan.apps.navigation.classes import SourceColumn
|
||||
|
||||
from .dependencies import * # NOQA
|
||||
from .classes import libreoffice_path
|
||||
from .links import (
|
||||
link_transformation_create, link_transformation_delete,
|
||||
link_transformation_edit
|
||||
|
||||
@@ -56,7 +56,7 @@ else:
|
||||
|
||||
pdftoppm = pdftoppm.bake(pdftoppm_format, '-r', pdftoppm_dpi)
|
||||
|
||||
pdfinfo_path=yaml.load(
|
||||
pdfinfo_path = yaml.load(
|
||||
stream=setting_graphics_backend_config.value, Loader=SafeLoader
|
||||
).get(
|
||||
'pdfinfo_path', DEFAULT_PDFINFO_PATH
|
||||
|
||||
@@ -92,7 +92,6 @@ class DocumentStatesApp(MayanAppConfig):
|
||||
|
||||
WorkflowAction.initialize()
|
||||
|
||||
|
||||
ModelAttribute(
|
||||
model=Document,
|
||||
name='workflow.< workflow internal name >.get_current_state',
|
||||
|
||||
@@ -2,7 +2,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from mayan.apps.dependencies.classes import BinaryDependency, PythonDependency
|
||||
from mayan.apps.dependencies.classes import BinaryDependency
|
||||
|
||||
from .drivers.exiftool import EXIFToolDriver
|
||||
|
||||
|
||||
@@ -66,7 +66,6 @@ class EXIFToolDriver(FileMetadataDriver):
|
||||
).get('exiftool_path', DEFAULT_EXIF_PATH)
|
||||
|
||||
|
||||
|
||||
EXIFToolDriver.register(
|
||||
mimetypes=(
|
||||
'application/msword',
|
||||
|
||||
@@ -29,7 +29,7 @@ from mayan.celery import app
|
||||
from mayan.apps.navigation.classes import SourceColumn
|
||||
|
||||
from .classes import DocumentMetadataHelper
|
||||
from .dependencies import * #NOQA
|
||||
from .dependencies import * # NOQA
|
||||
from .events import (
|
||||
event_document_metadata_added, event_document_metadata_edited,
|
||||
event_document_metadata_removed, event_metadata_type_edited,
|
||||
@@ -153,7 +153,6 @@ class MetadataApp(MayanAppConfig):
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
SourceColumn(
|
||||
source=Document, label=_('Metadata'),
|
||||
func=lambda context: get_metadata_string(context['object'])
|
||||
|
||||
Reference in New Issue
Block a user