Skip to content

Commit

Permalink
more CMD output
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnDriscoll committed Nov 8, 2018
1 parent a3281ee commit c835d3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion diceroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,13 @@ def roll(dice):
if dice <> 'TEST' and dice <> 'INFO':
print 'Your %s roll is %d.' % (dice, num)
diceroll_log.info('The direct call to diceroll with %s resulted in %d.' % (dice, num))
elif dice == 'INFO':
print 'roll(), release version ' + __release__ + ' for Classic Python 2.5.4'
else:
dice = str(dice).upper().strip()
num = roll(dice)
if dice <> 'TEST' and dice <> 'INFO':
print 'Your %s roll is %d.' % (dice, num)
diceroll_log.info('The direct call to diceroll with %s resulted in %d.' % (dice, num))

elif dice == 'INFO':
print 'roll(), release version ' + __release__ + ' for Classic Python 2.5.4'
Binary file modified diceroll_2.4.1b.zip
Binary file not shown.
5 changes: 4 additions & 1 deletion docs/source/diceroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,13 @@ def roll(dice):
if dice <> 'TEST' and dice <> 'INFO':
print 'Your %s roll is %d.' % (dice, num)
diceroll_log.info('The direct call to diceroll with %s resulted in %d.' % (dice, num))
elif dice == 'INFO':
print 'roll(), release version ' + __release__ + ' for Classic Python 2.5.4'
else:
dice = str(dice).upper().strip()
num = roll(dice)
if dice <> 'TEST' and dice <> 'INFO':
print 'Your %s roll is %d.' % (dice, num)
diceroll_log.info('The direct call to diceroll with %s resulted in %d.' % (dice, num))

elif dice == 'INFO':
print 'roll(), release version ' + __release__ + ' for Classic Python 2.5.4'

0 comments on commit c835d3a

Please sign in to comment.