summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-25 15:31:44 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-25 15:31:44 +0000
commit8895c38202f5f9cd136501cd330185c5b66654f8 (patch)
treef25c65ed3d1ff2b16a904a39331bd4d581c767ad
parent__future__ import (diff)
downloadsynapse-8895c38202f5f9cd136501cd330185c5b66654f8.tar.xz
Use MYPY variable instead
-rw-r--r--synapse/storage/engines/sqlite.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/synapse/storage/engines/sqlite.py b/synapse/storage/engines/sqlite.py

index 12ef92801c..f61a8fb13e 100644 --- a/synapse/storage/engines/sqlite.py +++ b/synapse/storage/engines/sqlite.py
@@ -12,16 +12,13 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import - import struct import threading -from pip._internal.utils.typing import MYPY_CHECK_RUNNING - from synapse.storage.engines import BaseDatabaseEngine -if MYPY_CHECK_RUNNING: +MYPY = False +if MYPY: import sqlite3