[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:
parent
389c3e1fd2
commit
60e0295b74
@ -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:
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user