[Dell]: Change Dell psuutil.py file to work with Python 3.* (#1231)

* change except comma to as
* remove print line
* change CRLF to LF

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
This commit is contained in:
Shuotian Cheng 2017-12-11 18:19:21 -08:00 committed by GitHub
parent 389c3e1fd2
commit 60e0295b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 80 additions and 82 deletions

View File

@ -8,7 +8,7 @@ import os.path
try:
from sonic_psu.psu_base import PsuBase
except ImportError, e:
except ImportError as e:
raise ImportError(str(e) + "- required module not found")
@ -24,7 +24,6 @@ class PsuUtil(PsuBase):
retval = 'ERR'
mb_reg_file = mailbox_dir+'/' + reg_name
if (not os.path.isfile(mb_reg_file)):
print mb_reg_file, 'not found !'
return retval
try:

View File

@ -8,7 +8,7 @@ import os.path
try:
from sonic_psu.psu_base import PsuBase
except ImportError, e:
except ImportError as e:
raise ImportError(str(e) + "- required module not found")
@ -24,7 +24,6 @@ class PsuUtil(PsuBase):
retval = 'ERR'
mb_reg_file = mailbox_dir+'/' + reg_name
if (not os.path.isfile(mb_reg_file)):
print mb_reg_file, 'not found !'
return retval
try: