Kaydet (Commit) 1de57912 authored tarafından Berker Peksag's avatar Berker Peksag

Silence all ResourceWarnings.

üst 081ce9e8
......@@ -5,7 +5,9 @@ import re
def read(*parts):
file_path = os.path.join(os.path.dirname(__file__), *parts)
return codecs.open(file_path, 'r').read()
with codecs.open(file_path, 'r') as fobj:
content = fobj.read()
return content
def find_version(*parts):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment