From 533e8db830090476f3b8854938f3e705f4a0a3a8 Mon Sep 17 00:00:00 2001 From: mozillazg Date: Sat, 20 Jul 2024 13:45:08 +0000 Subject: [PATCH] fix test on python2 --- pypinyin/phrases_dict.py | 1 + pypinyin/pinyin_dict.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pypinyin/phrases_dict.py b/pypinyin/phrases_dict.py index fedb7fd..c4bab7b 100644 --- a/pypinyin/phrases_dict.py +++ b/pypinyin/phrases_dict.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals +from codecs import open import json import os diff --git a/pypinyin/pinyin_dict.py b/pypinyin/pinyin_dict.py index 08434b5..9a8882f 100644 --- a/pypinyin/pinyin_dict.py +++ b/pypinyin/pinyin_dict.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals +from codecs import open import json import os