Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…h node v0.8
  • Loading branch information...
commit ebdd5cece48810836df215125769d297d6f9e7ee 1 parent 30751ac
@blakmatrix blakmatrix authored
View
2  examples/oauthclientapp.js
@@ -17,7 +17,7 @@ app.use(connect.logger())
.use(connect.session())
.use ('/oauth/callback', function(req, res, params) {
var parsedUrl= url.parse(req.originalUrl, true);
- console.log(require('sys').inspect(req.session))
+ console.log(require('util').inspect(req.session))
oa.getOAuthAccessToken(parsedUrl.query.oauth_token, req.session.oauth_token_secret, parsedUrl.query.oauth_verifier,
function(error, oauth_access_token, oauth_access_token_secret, results) {
oa.getProtectedResource("http://localhost:3000/fetch/unicorns", "GET", oauth_access_token, oauth_access_token_secret, function(error, data){
View
2  spec/lib/jspec.js
@@ -1522,7 +1522,7 @@
error : function(message, e) {
if ('stack' in e)
- require('sys').puts(e.stack + '\n')
+ require('util').puts(e.stack + '\n')
throw (message ? message : '') + e.toString() +
(e.line ? ' near line ' + e.line : '')
},
View
2  spec/node.js
@@ -7,7 +7,7 @@ require("express")
require("express/spec")
require("express/plugins")
-print = require('sys').puts
+print = require('util').puts
quit = process.exit
readFile = require('fs').readFileSync
Please sign in to comment.
Something went wrong with that request. Please try again.