Skip to content

Commit

Permalink
be more cautious when converting to int()
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Feb 3, 2017
1 parent 9ad0590 commit fef8ef0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion psutil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
]
__all__.extend(_psplatform.__extra__all__)
__author__ = "Giampaolo Rodola'"
__version__ = "5.1.1"
__version__ = "5.1.2"
version_info = tuple([int(num) for num in __version__.split('.')])
AF_LINK = _psplatform.AF_LINK
POWER_TIME_UNLIMITED = _common.POWER_TIME_UNLIMITED
Expand Down
2 changes: 1 addition & 1 deletion psutil/_pslinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ def multi_cat(*paths):
for path in paths:
ret = cat(path, fallback=null)
if ret != null:
return int(ret)
return int(ret) if ret.isdigit() else ret
return None

root = os.path.join(POWER_SUPPLY_PATH, "BAT0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/internal/download_exes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


BASE_URL = 'https://ci.appveyor.com/api'
PY_VERSIONS = ['2.7', '3.3', '3.4', '3.5']
PY_VERSIONS = ['2.7', '3.3', '3.4', '3.5', '3.6']


def exit(msg):
Expand Down

0 comments on commit fef8ef0

Please sign in to comment.