Skip to content

Commit

Permalink
Fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
hao.long authored and Hal committed Apr 8, 2020
1 parent d62e1cb commit 29b25c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion examples/add_metadata.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/photoshop/_documentinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 29b25c3

Please sign in to comment.