8000 Update Black to the latest version 23.1.0 · vvbv/mysql-connector-python@0eed7e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0eed7e2

Browse files
committed
Update Black to the latest version 23.1.0
This patch also applies the suggested changes. Change-Id: I6bbf4b26f3c2953cd728ec004b552356d6788b23
1 parent 1eb8798 commit 0eed7e2

24 files changed

+26
-64
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2022, 2023, Oracle and/or its affiliates.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License, version 2.0, as
@@ -28,7 +28,7 @@
2828

2929
repos:
3030
- repo: https://github.com/psf/black
31-
rev: 22.6.0
31+
rev: 23.1.0
3232
hooks:
3333
- id: black
3434
- repo: https://github.com/pycqa/isort

cpydist/data/deb/connector_python_pack_deb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# Copyright (c) 2020, 2022, Oracle and/or its affiliates.
3+
# Copyright (c) 2020, 2023, Oracle and/or its affiliates.
44
#
55
# This program is free software; you can redistribute it and/or modify
66
# it under the terms of the GNU General Public License, version 2.0, as
@@ -270,7 +270,6 @@ def get_changes():
270270

271271

272272
def rename_tar():
273-
274273
# Here "orig" is not "original", but the TAR naming the Deb build needs
275274
# The TAR is assumed to be one level up, i.e. in PB2WORKDIR
276275
tarball = os.path.join(os.path.dirname(cwd), basename_tar + ".tar.gz")

examples/engines.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2009, 2023, Oracle and/or its affiliates. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License, version 2.0, as
@@ -60,7 +60,6 @@ def main(config):
6060

6161

6262
if __name__ == "__main__":
63-
6463
config = {
6564
"host": "localhost",
6665
"port": 3306,

examples/inserts.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2009, 2023, Oracle and/or its affiliates. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License, version 2.0, as
@@ -85,7 +85,6 @@ def main(config):
8585

8686

8787
if __name__ == "__main__":
88-
8988
config = {
9089
"host": "localhost",
9190
"port": 3306,

examples/microseconds.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2009, 2023, Oracle and/or its affiliates. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License, version 2.0, as
@@ -125,7 +125,6 @@ def main(config):
125125

126126

127127
if __name__ == "__main__":
128-
129128
config = {
130129
"host": "localhost",
131130
"port": 3306,

examples/multi_resultsets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2009, 2023, Oracle and/or its affiliates. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License, version 2.0, as
@@ -91,7 +91,6 @@ def main(config):
9191

9292

9393
if __name__ == "__main__":
94-
9594
config = {
9695
"host": "localhost",
9796
"port": 3306,

examples/mysql_warnings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License, version 2.0, as
@@ -66,7 +66,6 @@ def main(config):
6666

6767

6868
if __name__ == "__main__":
69-
7069
config = {
7170
"host": "localhost",
7271
"port": 3306,

examples/prepared_statements.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License, version 2.0, as
@@ -88,7 +88,6 @@ def main(config):
8888

8989

9090
if __name__ == "__main__":
91-
9291
config = {
9392
"host": "localhost",
9493
"port": 3306,

examples/transaction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2009, 2023, Oracle and/or its affiliates. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License, version 2.0, as
@@ -128,7 +128,6 @@ def main(config):
128128

129129

130130
if __name__ == "__main__":
131-
132131
config = {
133132
"host": "localhost",
134133
"port": 3306,

examples/unicode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2009, 2023, Oracle and/or its affiliates. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License, version 2.0, as
@@ -88,7 +88,6 @@ def main(config):
8888

8989

9090
if __name__ == "__main__":
91-
9291
config = {
9392
"host": "localhost",
9493
"port": 3306,

0 commit comments

Comments
 (0)
0