Skip to content
This repository
Browse code

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

…h node v0.8
  • Loading branch information...
commit c708a64d6e9bb323b81cf360d9477d167765e25b 1 parent c3fb7a5
Farrin Reid authored June 23, 2012 AvianFlu committed July 03, 2012

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  test/memory.js
10  test/memory.js
... ...
@@ -1,4 +1,4 @@
1  
-var	sys = require('sys'),
  1
+var	util = require('util'),
2 2
 	twitter = require('twitter');
3 3
 
4 4
 var	count = 0,
@@ -7,13 +7,13 @@ var	count = 0,
7 7
 function tweet(data) {
8 8
 	count++;
9 9
 	if ( typeof data === 'string' )
10  
-		sys.puts(data);
  10
+		util.puts(data);
11 11
 	else if ( data.text && data.user && data.user.screen_name )
12  
-		sys.puts('"' + data.text + '" -- ' + data.user.screen_name);
  12
+		util.puts('"' + data.text + '" -- ' + data.user.screen_name);
13 13
 	else if ( data.message )
14  
-		sys.puts('ERROR: ' + sys.inspect(data));
  14
+		util.puts('ERROR: ' + util.inspect(data));
15 15
 	else
16  
-		sys.puts(sys.inspect(data));
  16
+		util.puts(util.inspect(data));
17 17
 }
18 18
 
19 19
 function memrep() {

0 notes on commit c708a64

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