Skip to content

Commit

Permalink
Merge pull request #141 from TanmayPatil105/copy
Browse files Browse the repository at this point in the history
Import only `copy` from `pyperclip`
  • Loading branch information
ArjunSharda authored Dec 6, 2022
2 parents 432ae11 + 4164f83 commit aa46749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/searchor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from webbrowser import open_new_tab
from enum import Enum, unique
from aenum import extend_enum
import pyperclip
from pyperclip import copy


@unique
Expand Down Expand Up @@ -123,6 +123,6 @@ def search(self, query, open_web=False, copy_url=False, additional_queries: dict
open_new_tab(url)

if copy_url is True:
pyperclip.copy(url)
copy(url)

return url

0 comments on commit aa46749

Please sign in to comment.