From 72b80e18d863cf2ea9e4b9f6ccedd2cf431fff3b Mon Sep 17 00:00:00 2001 From: DevilXD Date: Thu, 23 Dec 2021 22:09:45 +0100 Subject: [PATCH] Remove redundant copy operation --- channel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/channel.py b/channel.py index 9772fd3..11de9bd 100644 --- a/channel.py +++ b/channel.py @@ -4,7 +4,6 @@ import re import json import asyncio import logging -from copy import copy from base64 import b64encode from datetime import datetime, timezone from typing import Any, Optional, TYPE_CHECKING @@ -131,8 +130,9 @@ class Channel: return match.group(1) async def get_stream(self) -> Optional[Stream]: - op = copy(GQL_OPERATIONS["GetStreamInfo"].with_variables({"channel": self.name})) - response = await self._twitch.gql_request(op) + response = await self._twitch.gql_request( + GQL_OPERATIONS["GetStreamInfo"].with_variables({"channel": self.name}) + ) if response: stream_data = response["data"]["user"] self.id = int(stream_data["id"]) # fill channel_id