Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jnnsbrr committed Nov 22, 2024
1 parent c09663b commit d445bd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pycoupler/coupler.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def __init__(self, config_file, version=3, host="", port=2224):
def __getstate__(self):
# Create a dictionary of the attributes to pickle, excluding the socket
state = self.__dict__.copy()
if '_channel' in state:
del state['_channel'] # Exclude the socket
if "_channel" in state:
del state["_channel"] # Exclude the socket
return state

@property
Expand Down Expand Up @@ -1302,7 +1302,7 @@ def __read_meta_output(self, index=None, output_id=None):

def __repr__(self):
"""Representation of the Coupler object"""
if hasattr(self, '_channel'):
if hasattr(self, "_channel"):
try:
port = self._channel.getsockname()[1]
except OSError:
Expand Down

0 comments on commit d445bd2

Please sign in to comment.