Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
Testing new GitHub Desktop migration
  • Loading branch information
ShawnDriscoll committed Nov 3, 2018
1 parent 3f7f842 commit 1a06ef3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions diceroll.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# diceroll.py
#
# Written for Python 2.5.4
# Written for Classic Python 2.5.4
#
# To use this module: from diceroll import roll
#
Expand All @@ -16,7 +16,7 @@
from diceroll import roll
print roll('2D6')
Will roll two 6-sided dice
Will roll two 6-sided dice, returning an integer
'''

from random import randint
Expand Down Expand Up @@ -110,7 +110,7 @@ def roll(dice):

# was information for this program asked for?
if dice == 'INFO':
ver = 'roll(), release version ' + __release__ + ' for Python 2.5.4'
ver = 'roll(), release version ' + __release__ + ' for Classic Python 2.5.4'
diceroll_log.info('Reporting: roll() release version: %s' % __release__)
return __version__, ver

Expand Down Expand Up @@ -337,7 +337,7 @@ def roll(dice):
diceroll_log.info('diceroll was run without roll() called. Help will be sent if needed.')
print
if len(sys.argv) < 2:
print " Type 'diceroll -h' for help"
print " Type 'diceroll.py -h' for help"
elif sys.argv[1] in ['-h', '/h', '--help', '-?', '/?']:
print ' diceroll is a module (containing a roll function)'
print ' that needs to be imported into Python.'
Expand Down
Binary file modified diceroll_2.4.1b.zip
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/source/diceroll.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# diceroll.py
#
# Written for Python 2.5.4
# Written for Classic Python 2.5.4
#
# To use this module: from diceroll import roll
#
Expand All @@ -16,7 +16,7 @@
from diceroll import roll
print roll('2D6')
Will roll two 6-sided dice
Will roll two 6-sided dice, returning an integer
'''

from random import randint
Expand Down Expand Up @@ -110,7 +110,7 @@ def roll(dice):

# was information for this program asked for?
if dice == 'INFO':
ver = 'roll(), release version ' + __release__ + ' for Python 2.5.4'
ver = 'roll(), release version ' + __release__ + ' for Classic Python 2.5.4'
diceroll_log.info('Reporting: roll() release version: %s' % __release__)
return __version__, ver

Expand Down Expand Up @@ -337,7 +337,7 @@ def roll(dice):
diceroll_log.info('diceroll was run without roll() called. Help will be sent if needed.')
print
if len(sys.argv) < 2:
print " Type 'diceroll -h' for help"
print " Type 'diceroll.py -h' for help"
elif sys.argv[1] in ['-h', '/h', '--help', '-?', '/?']:
print ' diceroll is a module (containing a roll function)'
print ' that needs to be imported into Python.'
Expand Down

0 comments on commit 1a06ef3

Please sign in to comment.