Skip to content

fix : f-string formatting binlogstream.py L511 #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

HongGeonUi
Copy link
Contributor

closes #536
I apply f-string formatting

@mirageoasis
Copy link
Contributor

it would be better to make commit message as english since this project runs globally

@HongGeonUi HongGeonUi force-pushed the enhancement/f-string-HongGeonUi2 branch from dde88c4 to e9d58a4 Compare October 16, 2023 16:39
@HongGeonUi
Copy link
Contributor Author

it would be better to make commit message as english since this project runs globally

Sorry, I recognized that, but I had mistakes.
I change all commit messages.

@@ -507,7 +507,7 @@ def __set_mariadb_settings(self):
# https://mariadb.com/kb/en/5-slave-registration/
cur = self._stream_connection.cursor()
if self.auto_position is not None:
cur.execute("SET @slave_connect_state='%s'" % self.auto_position)
cur.execute(f'SET @slave_connect_state= "{self.auto_position}"')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change erase space

Suggested change
cur.execute(f'SET @slave_connect_state= "{self.auto_position}"')
cur.execute(f'SET @slave_connect_state="{self.auto_position}"')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I erase the space.

Copy link
Collaborator

@sean-k1 sean-k1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks your hard work!

@sean-k1 sean-k1 merged commit a26fb58 into julien-duponchelle:main Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apply f-string : pymysqlreplication/binlogstream.py #L511
3 participants