Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-05 02:42:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-05 02:42:43 +0400
commit162d02bf5014bd881a1268aca156009108159ff4 (patch)
tree65889d11336f8c9bb37fdae936b95628af235af8 /source/tests
parentb3bc0040d8ee88696d14aae9b59673d5f1bc83c1 (diff)
quiet warning & minor pep8 edits.
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/bl_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/tests/bl_test.py b/source/tests/bl_test.py
index 5dd7dbe32d7..cfe91356444 100644
--- a/source/tests/bl_test.py
+++ b/source/tests/bl_test.py
@@ -170,7 +170,9 @@ def main():
md5_update = md5_instance.update
for f in md5_source:
- md5_update(open(f, "rb").read())
+ filehandle = open(f, "rb")
+ md5_update(filehandle.read())
+ filehandle.close()
md5_new = md5_instance.hexdigest()