Skip to content

Commit

Permalink
py3k: Enable new numerical syntaxes.
Browse files Browse the repository at this point in the history
The only division already uses the integral division sign, and the long
literals were not really large enough to really require the suffix
anyway.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
  • Loading branch information
QuLogic committed Nov 16, 2015
1 parent b0aad13 commit 5a9f6dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fwfetcher.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python2

from __future__ import print_function
from __future__ import absolute_import, division, print_function

from urllib2 import Request, urlopen, URLError
import hashlib
Expand Down Expand Up @@ -175,8 +175,8 @@ def mstime(intime):
@return the time tuple
"""

num_d = (intime & 0xFFFF0000L) >> 16
num_t = intime & 0x0000FFFFL
num_d = (intime & 0xFFFF0000) >> 16
num_t = intime & 0x0000FFFF
# format below is : year, month, day, hour, minute, second,
# weekday (Monday), yearday (unused), DST flag (guess)
return ((num_d >> 9) + 1980, (num_d >> 5) & 0x0F, num_d & 0x1F,
Expand Down

0 comments on commit 5a9f6dd

Please sign in to comment.