Permalink
Browse files

Change sys to util

  • Loading branch information...
1 parent cc52a36 commit c623a2e5bac3a69fed6a05db5c49ffe756cf89fb @raycmorgan committed Mar 9, 2012
Showing with 7 additions and 7 deletions.
  1. +1 −1 lib/mu.js
  2. +2 −2 lib/mu/parser.js
  3. +4 −4 try.js
View
@@ -1,4 +1,4 @@
-var sys = require('sys'),
+var util = require('util'),
fs = require('fs'),
path = require('path'),
Stream = require('stream').Stream,
View
@@ -1,4 +1,4 @@
-var sys = require('sys'),
+var util = require('util'),
Buffer = require('buffer').Buffer,
newline = '__MU_NEWLINE__',
@@ -125,7 +125,7 @@ Parser.prototype = {
break;
case '=':
- sys.puts("Changing tag: " + content)
+ util.puts("Changing tag: " + content)
this.setTag(content.split(' '));
this.appendMultiContent(tagText);
break;
View
8 try.js
@@ -1,5 +1,5 @@
-var sys = require('sys'),
- mu = require('./lib/mu');
+var util = require('util'),
+ mu = require('./lib/mu');
var template = "ÏHello{{#user}} {{name}}{{/user}}! " +
"Hello{{^user}} {{name}}{{/user}}! " +
@@ -49,11 +49,11 @@ var numErrors = 0;
var stream = mu.render('bar.html', view)
.on('data', function (data) {
- sys.print(data);
+ util.print(data);
//stream.pause();
//setTimeout(function () { stream.resume(); }, 50);
})
- .on('end', function () { sys.print('\nDONE, Errors: ' + numErrors + '\n'); })
+ .on('end', function () { util.print('\nDONE, Errors: ' + numErrors + '\n'); })
.on('error', function (err) { numErrors++; });

0 comments on commit c623a2e

Please sign in to comment.