Skip to content

Commit 93b0da5

Browse files
code-health: remove utf-8 encoding instruction
Since Python 3 the default encoding of source files is already UTF-8 [1]. Unless instruction says something other than some variation of "utf-8", it has no effect [2]. 1. https://docs.python.org/3/howto/unicode.html#the-string-type 2. https://stackoverflow.com/questions/4872007/where-does-this-come-from-coding-utf-8 Part of #212
1 parent 770b567 commit 93b0da5

30 files changed

+2
-47
lines changed

doc/conf.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
#
31
# Tarantool python client library documentation build configuration file, created by
42
# sphinx-quickstart on Tue Nov 29 06:29:57 2011.
53
#

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
2+
33
import codecs
44
import os
55
import re

tarantool/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=C0301,W0105,W0401,W0614
32

43
import sys

tarantool/connection.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=C0301,W0105,W0401,W0614
32
'''
43
This module provides low-level API for Tarantool

tarantool/connection_pool.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import abc
42
import itertools
53
import queue

tarantool/const.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=C0301,W0105,W0401,W0614
32

43
IPROTO_CODE = 0x00

tarantool/dbapi.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from tarantool.connection import Connection as BaseConnection
32
from tarantool.error import *
43

tarantool/error.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=C0301,W0105,W0401,W0614
32
'''
43
Python DB API compatible exceptions

tarantool/mesh_connection.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
'''
32
This module provides the MeshConnection class with automatic switch
43
between Tarantool instances by the basic round-robin strategy.

tarantool/request.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=C0301,W0105,W0401,W0614
32
'''
43
Request types definitions

tarantool/response.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=C0301,W0105,W0401,W0614
32

43
try:

tarantool/schema.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=R0903
32
'''
43
This module provides the :class:`~tarantool.schema.Schema` class.

tarantool/space.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=C0301,W0105,W0401,W0614
32
'''
43
This module provides the :class:`~tarantool.space.Space` class.

tarantool/utils.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import sys
32
import uuid
43

test/setup_command.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
2+
33
import os
44
import sys
55
import unittest

test/suites/lib/tarantool_server.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import os
42
import os.path
53
import errno

test/suites/test_datetime.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_dbapi.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_decimal.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_dml.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_encoding.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_execute.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_interval.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import re

test/suites/test_mesh.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_pool.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_protocol.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_reconnect.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_schema.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

test/suites/test_ssl.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import os
42
import sys
53
import unittest

test/suites/test_uuid.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from __future__ import print_function
42

53
import sys

0 commit comments

Comments
 (0)