Skip to content

Commit 6611197

Browse files
committed
Replace io.open() with builtin open()
`io.open` is an alias for `open` anyway.
1 parent 7fc0f6f commit 6611197

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

cirq-aqt/setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import io
1615
import runpy
1716

1817
from setuptools import find_packages, setup
@@ -28,7 +27,7 @@
2827
)
2928

3029
# README file as long_description.
31-
long_description = io.open('README.md', encoding='utf-8').read()
30+
long_description = open('README.md', encoding='utf-8').read()
3231

3332
# Read in requirements
3433
requirements = open('requirements.txt').readlines()

cirq-core/setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import io
1615
import runpy
1716

1817
from setuptools import find_packages, setup
@@ -29,7 +28,7 @@
2928
)
3029

3130
# README file as long_description.
32-
long_description = io.open('README.md', encoding='utf-8').read()
31+
long_description = open('README.md', encoding='utf-8').read()
3332

3433
# Read in requirements
3534
requirements = open('requirements.txt').readlines()

cirq-ionq/setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import io
1615
import runpy
1716

1817
from setuptools import find_packages, setup
@@ -26,7 +25,7 @@
2625
description = 'A Cirq package to simulate and connect to IonQ quantum computers'
2726

2827
# README file as long_description.
29-
long_description = io.open('README.md', encoding='utf-8').read()
28+
long_description = open('README.md', encoding='utf-8').read()
3029

3130
# Read in requirements
3231
requirements = open('requirements.txt').readlines()

cirq-pasqal/setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import io
1615
import runpy
1716

1817
from setuptools import find_packages, setup
@@ -26,7 +25,7 @@
2625
description = 'A Cirq package to simulate and connect to Pasqal quantum computers'
2726

2827
# README file as long_description.
29-
long_description = io.open('README.md', encoding='utf-8').read()
28+
long_description = open('README.md', encoding='utf-8').read()
3029

3130
# Read in requirements
3231
requirements = open('requirements.txt').readlines()

cirq-rigetti/setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import io
1615
import runpy
1716

1817
from setuptools import find_packages, setup
@@ -26,7 +25,7 @@
2625
description = 'A Cirq package to simulate and connect to Rigetti quantum computers and Quil QVM'
2726

2827
# README file as long_description.
29-
long_description = io.open('README.md', encoding='utf-8').read()
28+
long_description = open('README.md', encoding='utf-8').read()
3029

3130
# Read in requirements
3231
requirements = open('requirements.txt').readlines()

0 commit comments

Comments
 (0)