Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Add wrapper method to fix issue #856 (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
nochtli authored and thegecko committed Sep 19, 2019
1 parent 1291446 commit 047cff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yotta/lib/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def bump(self, bumptype):
self.version.prerelease = None
self.version.build = None

def truncate(self, level):
return self.version.truncate(level)

def __str__(self):
return str(self.version)

Expand Down

0 comments on commit 047cff2

Please sign in to comment.