From 29b25c3763751b0dd7a3bfb41eadf0834fc999a7 Mon Sep 17 00:00:00 2001 From: "hao.long" Date: Thu, 9 Apr 2020 01:23:39 +0800 Subject: [PATCH] Fix pylint --- examples/add_metadata.py | 7 ++++++- src/photoshop/_documentinfo.py | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/add_metadata.py b/examples/add_metadata.py index 3935d347..1684399f 100644 --- a/examples/add_metadata.py +++ b/examples/add_metadata.py @@ -1,7 +1,12 @@ """Add metadata to current active document.""" -from photoshop import Session + +# Import built-in modules import os +# Import local modules +from photoshop import Session + + with Session(action="new_document") as ps: doc = ps.active_document doc.info.author = os.getenv("USERNAME") diff --git a/src/photoshop/_documentinfo.py b/src/photoshop/_documentinfo.py index 6c898538..1c645b11 100644 --- a/src/photoshop/_documentinfo.py +++ b/src/photoshop/_documentinfo.py @@ -112,8 +112,8 @@ def copyrighted(self): return self.app.copyrighted @copyrighted.setter - def copyrighted(self, copyright): - self.app.copyrighted = copyright + def copyrighted(self, info): + self.app.copyrighted = info @property def country(self):