Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion file/tests/file_spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require("assert");
var sys = require("sys");
var util = require('util');
var minitest = require("../vendor/minitest.js/minitest");
var file = require("../lib/main");
var fs = require("fs");
Expand Down
12 changes: 6 additions & 6 deletions file/vendor/minitest.js/minitest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var sys = require("sys");
var util = require('util');
var colours = require("./colours");

/* suite */
Expand All @@ -9,10 +9,10 @@ function Suite () {
Suite.prototype.report = function () {
var suite = this;
this.contexts.forEach(function(context, index) {
sys.puts(context.contextHeader());
util.puts(context.contextHeader());
context.report();
if (suite.contexts.length === index) {
sys.puts("");
util.puts("");
};
});
};
Expand Down Expand Up @@ -74,9 +74,9 @@ Test.prototype.failed = function (error) {

Test.prototype.report = function () {
if (this.result) {
sys.puts(this.result);
util.puts(this.result);
} else {
sys.puts(this.reportNotFinished());
util.puts(this.reportNotFinished());
};
};

Expand Down Expand Up @@ -140,7 +140,7 @@ function setupUncaughtExceptionListener () {
// so we could just set test.result, so everything would be
// reported properly on the correct place, not in the middle of tests
process.addListener("uncaughtException", function (error) {
sys.puts(Test.prototype.reportError(error));
util.puts(Test.prototype.reportError(error));
});
};

Expand Down
6 changes: 3 additions & 3 deletions pool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ Pool has two core usage scenarios: creating a pool and creating a set of pools.

<pre>
var pool = require('pool'),
sys = require('sys'),
util = require('util'),
local = pool.createPool('80', 'localhost');

client = local.request('GET', '/', function (request) {
// You can work with the request here just as you would as if it
// was returned from http.createClient
request.on('end', function () {
sys.puts('Request ended');
util.puts('Request ended');
});
});
</pre>
Expand All @@ -35,7 +35,7 @@ Creating a set of pools can be accomplished using a PoolManager:
// You can work with the request here just as you would as if it
// was returned from http.createClient
request.on('end', function () {
sys.puts('Request ended');
util.puts('Request ended');
});
});
</pre>
4 changes: 2 additions & 2 deletions pool/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var sys = require('sys')
var util = require('util')
, http = require('http')
, events = require('events')
;
Expand All @@ -13,7 +13,7 @@ function Pool (port, host, https, credentials) {
this.minClients = 0;
this.maxClients = 8;
}
sys.inherits(Pool, events.EventEmitter);
util.inherits(Pool, events.EventEmitter);
Pool.prototype.getClient = function (cb) {
for (var i=0;i<this.clients.length;i+=1) {
// Check if the client closed unexpectedly
Expand Down
10 changes: 5 additions & 5 deletions streams/lib/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var sys = require('sys')
var util = require('util')
, events = require('events');

/*
Expand All @@ -9,15 +9,15 @@ Simplified API for creating a Stream compatible object that can mutate data comi

// Write 4 chunks at a time.
var b = [];
var filter = sys.createFilter(function (chunk, write) {
var filter = util.createFilter(function (chunk, write) {
if (!chunk || b.length === 4) {
b.forEach( function (c) {write(c)} );
} else {
b.push(chunk);
}
});
sys.pump(readable, filter);
sys.pump(filter, writable);
util.pump(readable, filter);
util.pump(filter, writable);
*/

function Filter(handler) {
Expand All @@ -39,7 +39,7 @@ Filter.prototype.pause = function() {
Filter.prototype.resume = function() {
this.emit("resume")
}
sys.inherits(Filter, events.EventEmitter)
util.inherits(Filter, events.EventEmitter)

function createFilter (handler) {
return new Filter(handler);
Expand Down