Remove another redundant io import
This commit is contained in:
parent
b1b4f78764
commit
7fb8b0f155
4
setup.py
4
setup.py
@ -42,7 +42,6 @@ import glob
|
|||||||
import codecs
|
import codecs
|
||||||
import subprocess
|
import subprocess
|
||||||
from stat import ST_MODE
|
from stat import ST_MODE
|
||||||
import io
|
|
||||||
from gramps.version import VERSION
|
from gramps.version import VERSION
|
||||||
import unittest
|
import unittest
|
||||||
import argparse
|
import argparse
|
||||||
@ -273,8 +272,7 @@ class install(_install):
|
|||||||
def run(self):
|
def run(self):
|
||||||
resource_file = os.path.join(os.path.dirname(__file__), 'gramps', 'gen',
|
resource_file = os.path.join(os.path.dirname(__file__), 'gramps', 'gen',
|
||||||
'utils', 'resource-path')
|
'utils', 'resource-path')
|
||||||
with io.open(resource_file, 'w', encoding='utf-8',
|
with open(resource_file, 'w', encoding='utf-8', errors='strict') as fp:
|
||||||
errors='strict') as fp:
|
|
||||||
if packaging:
|
if packaging:
|
||||||
path = resource_path
|
path = resource_path
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user