From 0367ee6ef3063d50ca8a1a51a5dbbb8b37e90d81 Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 23 Jun 2012 18:52:12 -0800 Subject: [PATCH] [fix] Changed require('util') to require('util') for compatibility with node v0.8 --- README.md | 4 ++-- examples/tour.js | 4 ++-- test/vows.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2f7195d..4713e19 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Blog post coming. ### A Quick Tour // See ./examples/tour.js - var sys = require("sys"); + var util = require('util'); var redis = require("redis-node"); var client = redis.createClient(); // Create the client client.select(2); // Select database 2 @@ -40,7 +40,7 @@ Blog post coming. // The commands are also idiomatic client.hmset("hash", { t: "rex", steg: "asaurus" }, function (err, status) { if (err) throw err; - sys.log(status); // true + util.log(status); // true }); // Support for transactions diff --git a/examples/tour.js b/examples/tour.js index 4278a03..5d3b7bd 100644 --- a/examples/tour.js +++ b/examples/tour.js @@ -1,6 +1,6 @@ // Run using // node examples/tour.js -var sys = require("sys"); +var util = require('util'); var redis = require("redis-node"); var client = redis.createClient(); // Create the client client.select(2); // Select database 2 @@ -22,7 +22,7 @@ client.set("hello", "world"); // The commands are also idiomatic client.hmset("hash", { t: "rex", steg: "asaurus" }, function (err, status) { if (err) throw err; - sys.log(status); // true + util.log(status); // true }); // Support for transactions diff --git a/test/vows.js b/test/vows.js index ee7d164..50b3298 100644 --- a/test/vows.js +++ b/test/vows.js @@ -2,7 +2,7 @@ // TODO Allow passing of arrays to mset // TODO Test sort with STORE option -var sys = require("sys"), +var util = require('util'), vows = require("vows"), assert = require("assert"), redis = require("../lib/redis"),