2424 */
2525
2626var tcp = require ( 'net' ) ,
27- sys = require ( 'sys ' ) ;
27+ util = require ( 'util ' ) ;
2828
2929var crlf = "\r\n" ;
3030var crlf_len = crlf . length ;
@@ -42,7 +42,7 @@ var Client = exports.Client = function(port, host) {
4242 this . handles = [ ] ;
4343} ;
4444
45- sys . inherits ( Client , process . EventEmitter ) ;
45+ util . inherits ( Client , process . EventEmitter ) ;
4646
4747Client . prototype . connect = function ( ) {
4848 if ( ! this . conn ) {
@@ -57,7 +57,7 @@ Client.prototype.connect = function () {
5757
5858 this . conn . addListener ( "data" , function ( data ) {
5959 self . buffer += data ;
60- // sys .debug(data);
60+ // util .debug(data);
6161 self . recieves += 1 ;
6262 self . handle_received_data ( ) ;
6363 } ) ;
@@ -97,7 +97,7 @@ Client.prototype.addHandler = function(callback) {
9797Client . prototype . dispatchHandles = function ( ) {
9898 for ( var i in this . handles ) {
9999 var handle = this . handles . shift ( ) ;
100- // sys .debug('dispatching handle ' + handle);
100+ // util .debug('dispatching handle ' + handle);
101101 if ( typeof handle !== 'undefined' ) {
102102 handle ( ) ;
103103 }
@@ -162,7 +162,7 @@ Client.prototype.cas = function(key, value, unique, callback, lifetime, flags) {
162162
163163
164164Client . prototype . del = function ( key , callback ) {
165- sys . error ( "mc.del() is deprecated - use mc.delete() instead" ) ;
165+ util . error ( "mc.del() is deprecated - use mc.delete() instead" ) ;
166166 return this . delete ( key , callback ) ;
167167} ;
168168
0 commit comments