Skip to content
Browse files

Change the deprecated "sys" module to "util"

  • Loading branch information...
1 parent 2ae83e2 commit f8a5268c5260eb1fbbaf326ff56cead90d796a41 @jhs jhs committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Tokenizer.js
View
4 lib/Tokenizer.js
@@ -1,5 +1,5 @@
var EventEmitter = require('events').EventEmitter;
-var sys = require('sys');
+var util = require('util');
var assert = require('assert');
function noop(){}
@@ -13,7 +13,7 @@ function Tokenizer (check_token_cb) {
// these will be parsed but not emitted
this._checkToken = check_token_cb || noop;
}
-sys.inherits(Tokenizer, EventEmitter);
+util.inherits(Tokenizer, EventEmitter);
Tokenizer.prototype.write = function write(data, nobuffer) {
assert.ok(typeof data == 'string');

0 comments on commit f8a5268

Please sign in to comment.
Something went wrong with that request. Please try again.