Skip to content

Commit

Permalink
Renaming sys by util (Issue dmcquay#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarty committed Oct 19, 2012
1 parent 4c25b16 commit b02e4b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/example-item-search.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var sys = require('sys'),
OperationHelper = require('apac').OperationHelper;
var util = require('util'),
OperationHelper = require('../lib/apac').OperationHelper;

var opHelper = new OperationHelper({
awsId: '[YOUR AWS ID HERE]',
Expand All @@ -12,6 +12,6 @@ opHelper.execute('ItemSearch', {
'Keywords': 'harry potter',
'ResponseGroup': 'ItemAttributes,Offers'
}, function(error, results) {
if (error) { sys.print('Error: ' + error + '\n') }
sys.print('Results:\n' + sys.inspect(results) + '\n');
if (error) { util.print('Error: ' + error + '\n') }
util.print('Results:\n' + util.inspect(results) + '\n');
});

0 comments on commit b02e4b3

Please sign in to comment.