Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Hi! I fixed some calls to "sys" for you! #28

Closed
wants to merge 1 commit into from

3 participants

@node-migrator-bot

Hello pgriess!

I am migrationBot, an open-source bot, and I'm here to help you migrate your codebase to node v0.8!

Did you know that the "sys" module throws an error if your program tries to require it in node v0.8? To help keep your code running, I automatically replaced var sys = require('sys') with var util = require('util').

If you'd like to know more about these changes in node.js, take a look at joyent/node@1582cf#L1R51 and https://github.com/joyent/node/blob/1582cfebd6719b2d2373547994b3dca5c8c569c0/ChangeLog#L51 and http://blog.jit.su/introducing-blakmatrix-and-migratorbot .

As for myself, I was written by your friendly neighborhood node ninjas at Nodejitsu, and you can find them at #nodejitsu on irc.freenode.net or with http://webchat.jit.su .

Enjoy!

--migrationBot

@godsflaw
Collaborator

Sorry, we will do this on our own.

@godsflaw godsflaw closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 23, 2012
  1. @blakmatrix
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +1 −1  bench.js
  2. +2 −2 bin/msgpack2json
  3. +2 −2 lib/msgpack.js
View
2  bench.js
@@ -2,7 +2,7 @@
var assert = require('assert');
var msgpack = require('msgpack');
-var sys = require('sys');
+var util = require('util');
var DATA_TEMPLATE = {'abcdef' : 1, 'qqq' : 13, '19' : [1, 2, 3, 4]};
var DATA = [];
View
4 bin/msgpack2json
@@ -3,11 +3,11 @@
var msgpack = require('msgpack');
var net = require('net');
-var sys = require('sys');
+var util = require('util');
var s = new net.Stream(0);
s.addListener('data', function(b) {
- sys.puts(JSON.stringify(msgpack.unpack(b)));
+ util.puts(JSON.stringify(msgpack.unpack(b)));
});
s.resume();
View
4 lib/msgpack.js
@@ -3,7 +3,7 @@
var buffer = require('buffer');
var events = require('events');
var mpBindings = require('../build/default/mpBindings');
-var sys = require('sys');
+var util = require('util');
var pack = mpBindings.pack;
var unpack = mpBindings.unpack;
@@ -68,5 +68,5 @@ var Stream = function(s) {
});
};
-sys.inherits(Stream, events.EventEmitter);
+util.inherits(Stream, events.EventEmitter);
exports.Stream = Stream;
Something went wrong with that request. Please try again.