Skip to content

Commit

Permalink
Fix for python2 rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
doruchan authored and justinfx committed Jul 25, 2023
1 parent d93f22f commit 584ee22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileseq/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def pad(number, width=0, decimal_places=None):
# https://github.com/PixarAnimationStudios/USD/blob/release/pxr/usd/usd/clipSetDefinition.cpp
if decimal_places == 0:
try:
number = round(number)
number = round(number) or 0
except TypeError:
pass
return futils.native_str(number).partition(".")[0].zfill(width)
Expand Down

0 comments on commit 584ee22

Please sign in to comment.