Skip to content

Commit

Permalink
Package version is a string not a float
Browse files Browse the repository at this point in the history
Signed-off-by: Nisha K <[email protected]>
  • Loading branch information
Nisha K committed Nov 9, 2017
1 parent e476294 commit 32dcc99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Package(object):
to_dict: returns a dict representation of the instance'''
def __init__(self, name):
self.__name = name
self.__version = 0.0
self.__version = ''
self.__license = ''
self.__src_url = ''

Expand Down
2 changes: 1 addition & 1 deletion report.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def print_package_notes(packages, report, notes):
report = report + report_license.format(license=package.license)
report = report + report_url.format(url=package.src_url)
report = report + section_terminator
if package.version == 0.0:
if package.version == '':
notes = notes + no_version.format(package=package.name)
if package.license == '':
notes = notes + no_license.format(package=package.name)
Expand Down

0 comments on commit 32dcc99

Please sign in to comment.