Skip to content

Commit a4e59d6

Browse files
authored
Remove Python2 compatibility (#480)
1 parent 942a0b5 commit a4e59d6

24 files changed

+6
-74
lines changed

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
#
31
# Python MySQL Replication documentation build configuration file, created by
42
# sphinx-quickstart on Sun Sep 30 15:04:27 2012.
53
#

examples/dump_events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
#
54
# Dump all replication events from a remote mysql server

examples/logstash/mysql_to_logstash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
#
54
# Output logstash events to the console from MySQL replication stream

examples/redis_cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
#
54
# Update a redis server cache when an evenement is trigger

pymysqlreplication/_compat.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pymysqlreplication/binlogstream.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import struct
42
import logging
53
from distutils.version import LooseVersion

pymysqlreplication/bitmap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
bitCountInByte = [
42
0,
53
1,

pymysqlreplication/column.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import struct
42

53
from .constants import FIELD_TYPE

pymysqlreplication/constants/BINLOG.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
UNKNOWN_EVENT = 0x00
42
START_EVENT_V3 = 0x01
53
QUERY_EVENT = 0x02

pymysqlreplication/constants/FIELD_TYPE.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# Original code from PyMySQL
42
# Copyright (c) 2010 PyMySQL contributors
53
#

0 commit comments

Comments
 (0)