From: Jan Szejko Date: Mon, 11 Apr 2016 15:33:49 +0000 (+0200) Subject: remove "import *" X-Git-Tag: 1.7~70 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/90f6c5d936cafdc51639b251591a909696ea4935 remove "import *" --- diff --git a/librarian/picture.py b/librarian/picture.py index dbbb4de..1aa1d07 100644 --- a/librarian/picture.py +++ b/librarian/picture.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +from operator import and_ + from dcparser import Field, WorkInfo, DCNS from librarian import (RDFNS, ValidationError, NoDublinCore, ParseError, WLURI) from xml.parsers.expat import ExpatError @@ -7,8 +9,6 @@ from StringIO import StringIO from lxml import etree from lxml.etree import (XMLSyntaxError, XSLTApplyError, Element) import re -from functools import * -from operator import * class WLPictureURI(WLURI): @@ -96,6 +96,7 @@ class WLPicture(object): self.picture_info = PictureInfo.from_element(self.rdf_elem) else: self.picture_info = None + self.frame = None @classmethod def from_string(cls, xml, *args, **kwargs):