[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31356] branches/soc-2010-leifandersen/ release/scripts/modules/tests/hashfile.py: 1.
Leif Andersen
leif.a.andersen at gmail.com
Sun Aug 15 20:11:04 CEST 2010
Revision: 31356
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31356
Author: leifandersen
Date: 2010-08-15 20:11:04 +0200 (Sun, 15 Aug 2010)
Log Message:
-----------
1. Removed the ChangeHash method which should have been removed a while back.
Modified Paths:
--------------
branches/soc-2010-leifandersen/release/scripts/modules/tests/hashfile.py
Modified: branches/soc-2010-leifandersen/release/scripts/modules/tests/hashfile.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/modules/tests/hashfile.py 2010-08-15 17:40:57 UTC (rev 31355)
+++ branches/soc-2010-leifandersen/release/scripts/modules/tests/hashfile.py 2010-08-15 18:11:04 UTC (rev 31356)
@@ -31,19 +31,5 @@
[['empty_scene', -1504849438355502056], ['empty_mesh', 3297148919719683587]]
"""
-# Changes the value of a hash in a hashfile. If you have multiple hashes in the same hashfile that share the same name, than you have the option of returning which hash in the file it has that name.
-#param: pathname, hashname, new hash code, hash location (only needed for clashing names)
-def changehash(path, hashname, hashcode, number=1):
- data = tests.hashfile.read(path)
- hash_locations = []
- i = 0
- for tuple in data:
- if tuple[0] == hashname:
- hash_locations.append(i)
- i+=1
- change_index = hash_locations[number-1]
- data[change_index][1] = hashcode
- tests.hashfile.write(path, data)
-
-last_hash = -1
-data = []
\ No newline at end of file
+last_hash = 'NotRun'
+data = []
More information about the Bf-blender-cvs
mailing list