Mercurial > psgxs
diff storage.js @ 43:023f767662d3
Fix compatibility with strict mode of node 0.4 and some files without licence header.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 01 Mar 2011 11:58:15 +0100 |
parents | 6697f394301f |
children | 0d3f18bb1d36 |
line wrap: on
line diff
--- a/storage.js +++ b/storage.js @@ -17,6 +17,8 @@ * along with PSĜS. If not, see <http://www.gnu.org/licenses/>. */ +'use strict'; + var fs = require('fs'); var sha1hex = require('sha1').hex; require('./iso8601'); @@ -493,5 +495,5 @@ storage.getAffiliationsFromNodeID = func }; storage.debug = function() { - console.log('\033[1;33m' + require('sys').inspect(backend.list, null, null) + '\033[0m'); + console.log('\x1b[1;33m' + require('sys').inspect(backend.list, null, null) + '\x1b[0m'); };