Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] Changed require('util') to require('util') for compatibility wi…

…th node v0.8
  • Loading branch information...
commit 9a9e5fe51cc13ee19ad2e270b3632aae96ddc854 1 parent b9eef83
@blakmatrix blakmatrix authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 examples/example.js
View
14 examples/example.js
@@ -1,16 +1,16 @@
var fs = require("fs"),
- sys = require("sys"),
+ util = require('util'),
path = require("path"),
xml = fs.cat(path.join(__dirname, "test.xml")),
sax = require("../lib/sax"),
strict = sax.parser(true),
loose = sax.parser(false, {trim:true}),
inspector = function (ev) { return function (data) {
- // sys.error("");
- // sys.error(ev+": "+sys.inspect(data));
- // for (var i in data) sys.error(i+ " "+sys.inspect(data[i]));
- // sys.error(this.line+":"+this.column);
+ // util.error("");
+ // util.error(ev+": "+util.inspect(data));
+ // for (var i in data) util.error(i+ " "+util.inspect(data[i]));
+ // util.error(this.line+":"+this.column);
}};
xml.addCallback(function (xml) {
@@ -20,8 +20,8 @@ xml.addCallback(function (xml) {
loose["on"+ev] = inspector(ev);
});
loose.onend = function () {
- // sys.error("end");
- // sys.error(sys.inspect(loose));
+ // util.error("end");
+ // util.error(util.inspect(loose));
};
// do this one char at a time to verify that it works.
Please sign in to comment.
Something went wrong with that request. Please try again.