Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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
  • Loading branch information
DifferentialOrange committed Oct 6, 2022
commit d6706e32b94c4878f089b5e8a849d6b711bffff8
2 changes: 0 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
#
# Tarantool python client library documentation build configuration file, created by
# sphinx-quickstart on Tue Nov 29 06:29:57 2011.
#
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import codecs
import os
import re
Expand Down
1 change: 0 additions & 1 deletion tarantool/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# pylint: disable=C0301,W0105,W0401,W0614

import sys
Expand Down
1 change: 0 additions & 1 deletion tarantool/connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# pylint: disable=C0301,W0105,W0401,W0614
'''
This module provides low-level API for Tarantool
Expand Down
2 changes: 0 additions & 2 deletions tarantool/connection_pool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

import abc
import itertools
import queue
Expand Down
1 change: 0 additions & 1 deletion tarantool/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# pylint: disable=C0301,W0105,W0401,W0614

IPROTO_CODE = 0x00
Expand Down
1 change: 0 additions & 1 deletion tarantool/dbapi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from tarantool.connection import Connection as BaseConnection
from tarantool.error import *

Expand Down
1 change: 0 additions & 1 deletion tarantool/error.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# pylint: disable=C0301,W0105,W0401,W0614
'''
Python DB API compatible exceptions
Expand Down
1 change: 0 additions & 1 deletion tarantool/mesh_connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
'''
This module provides the MeshConnection class with automatic switch
between Tarantool instances by the basic round-robin strategy.
Expand Down
1 change: 0 additions & 1 deletion tarantool/request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# pylint: disable=C0301,W0105,W0401,W0614
'''
Request types definitions
Expand Down
1 change: 0 additions & 1 deletion tarantool/response.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# pylint: disable=C0301,W0105,W0401,W0614

try:
Expand Down
1 change: 0 additions & 1 deletion tarantool/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# pylint: disable=R0903
'''
This module provides the :class:`~tarantool.schema.Schema` class.
Expand Down
1 change: 0 additions & 1 deletion tarantool/space.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# pylint: disable=C0301,W0105,W0401,W0614
'''
This module provides the :class:`~tarantool.space.Space` class.
Expand Down
1 change: 0 additions & 1 deletion tarantool/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
import uuid

Expand Down
2 changes: 1 addition & 1 deletion test/setup_command.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
import unittest
Expand Down
2 changes: 0 additions & 2 deletions test/suites/lib/tarantool_server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

import os
import os.path
import errno
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_datetime.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_dbapi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_decimal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_dml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_encoding.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_execute.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_interval.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import re
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_mesh.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_pool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_protocol.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_reconnect.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_ssl.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

import os
import sys
import unittest
Expand Down
2 changes: 0 additions & 2 deletions test/suites/test_uuid.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
Expand Down