Skip to content

Commit

Permalink
__main__ -b updated for datetime.
Browse files Browse the repository at this point in the history
Fixes issue #2. On platforms with datetime, an exception will still be
raised, but that's alright; at least it will be descriptive.
  • Loading branch information
Cairnarvon committed Oct 7, 2013
1 parent e863469 commit 92c49a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# The short X.Y version.
version = '3.0'
# The full version, including alpha/beta/rc tags.
release = '3.0.0'
release = '3.0.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def build_extension(self, ext):

dist = setup(
name='uptime',
version='3.0.0',
version='3.0.1',
description='Cross-platform uptime library',
long_description='''\
This module provides a cross-platform way to retrieve system uptime and boot time.
Expand Down
3 changes: 1 addition & 2 deletions src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@

sys.stdout.write('Uptime: %s.\n' % ', '.join(parts))
else:
boot = boottime()
sys.stdout.write(time.strftime('Booted: %c.\n', boot))
sys.stdout.write(boottime().strftime('Booted: %c.\n'))

0 comments on commit 92c49a1

Please sign in to comment.