Permalink
Browse files

suppress warnings at installing

  • Loading branch information...
1 parent 3fa5d79 commit f9841d907ccb39b91f7fbfefb8484557a2825ecd @aodag aodag committed Feb 8, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 setup.py
View
@@ -20,8 +20,10 @@
here = os.path.abspath(os.path.dirname(__file__))
try:
- README = open(os.path.join(here, 'README.txt')).read()
- CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
+ with open(os.path.join(here, 'README.txt')) as f:
+ README = f.read()
+ with open(os.path.join(here, 'CHANGES.txt')) as f:
+ CHANGES = f.read()
except:
README = ''
CHANGES = ''

0 comments on commit f9841d9

Please sign in to comment.