Skip to content

Commit

Permalink
Use with statement to ensure the file is closed by Python
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jun 11, 2014
1 parent 17a712f commit 0ba0a96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python

from __future__ import with_statement
from setuptools import setup, find_packages
import simiki

Expand All @@ -10,7 +10,8 @@
]
}

requires = open("requirements.txt").readlines()
with open("requirements.txt") as f:
requires = f.readlines()

setup(
name = "simiki",
Expand Down

0 comments on commit 0ba0a96

Please sign in to comment.