Skip to content

Commit

Permalink
Use io.open once again for python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok committed Aug 22, 2022
1 parent 6b36263 commit 1869e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tox/config/__init__.py
@@ -1,6 +1,7 @@
from __future__ import print_function

import argparse
import io
import itertools
import json
import os
Expand Down Expand Up @@ -317,7 +318,7 @@ def parseconfig(args, plugins=()):


def get_py_project_toml(path):
with open(str(path), mode=toml_mode, encoding=toml_encoding) as file_handler:
with io.open(str(path), mode=toml_mode, encoding=toml_encoding) as file_handler:
config_data = toml_loader.load(file_handler)
return config_data

Expand Down

0 comments on commit 1869e11

Please sign in to comment.