Skip to content

Commit

Permalink
Added dependancy, add raise error for commas()
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelrebel committed Oct 24, 2015
1 parent fe37ad9 commit 8e08d75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions pixelrebel/helper.py
@@ -1,3 +1,4 @@
import datetime
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
Expand All @@ -20,9 +21,7 @@ def normalize(v):
'''
def commas(x):
if type(x) not in [type(0), type(0L)]:
#raise TypeError("Parameter must be an integer.")
# Don't Raise Error, instead just pass string through
return str(x)
raise TypeError("Parameter must be an integer.")
if x < 0:
return '-' + commas(-x)
result = ''
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -2,12 +2,12 @@
setup(
name = 'pixelrebel',
packages = ['pixelrebel'],
version = '0.0.5',
version = '0.0.6',
description = 'A helper library of common snippets.',
author = 'Pixel Rebel',
author_email = 'github@pixelrebel.com',
url = 'https://github.com/pixelrebel/pypixelrebel',
download_url = 'https://github.com/pixelrebel/pypixelrebel/tarball/v0.0.5',
download_url = 'https://github.com/pixelrebel/pypixelrebel/tarball/v0.0.6',
keywords = ['helper', 'helpers'],
classifiers = [],
)

0 comments on commit 8e08d75

Please sign in to comment.