@@ -1608,7 +1608,7 @@ def do__relative_load(self, file_path):
1608
1608
"""
1609
1609
# If arg is None or arg is an empty string this is an error
1610
1610
if not file_path :
1611
- self .perror ('_relative_load command requires a file path:\n ' , traceback_war = False )
1611
+ self .perror ('_relative_load command requires a file path:' , traceback_war = False )
1612
1612
return
1613
1613
1614
1614
file_path = file_path .strip ()
@@ -1627,24 +1627,24 @@ def do_load(self, file_path):
1627
1627
"""
1628
1628
# If arg is None or arg is an empty string this is an error
1629
1629
if not file_path :
1630
- self .perror ('load command requires a file path:\n ' , traceback_war = False )
1630
+ self .perror ('load command requires a file path:' , traceback_war = False )
1631
1631
return
1632
1632
1633
1633
expanded_path = os .path .abspath (os .path .expanduser (file_path .strip ()))
1634
1634
1635
1635
# Make sure expanded_path points to a file
1636
1636
if not os .path .isfile (expanded_path ):
1637
- self .perror ('{} does not exist or is not a file\n ' .format (expanded_path ), traceback_war = False )
1637
+ self .perror ('{} does not exist or is not a file' .format (expanded_path ), traceback_war = False )
1638
1638
return
1639
1639
1640
1640
# Make sure the file is not empty
1641
1641
if os .path .getsize (expanded_path ) == 0 :
1642
- self .perror ('{} is empty\n ' .format (expanded_path ), traceback_war = False )
1642
+ self .perror ('{} is empty' .format (expanded_path ), traceback_war = False )
1643
1643
return
1644
1644
1645
1645
# Make sure the file is ASCII or UTF-8 encoded text
1646
1646
if not self .is_text_file (expanded_path ):
1647
- self .perror ('{} is not an ASCII or UTF-8 encoded text file\n ' .format (expanded_path ), traceback_war = False )
1647
+ self .perror ('{} is not an ASCII or UTF-8 encoded text file' .format (expanded_path ), traceback_war = False )
1648
1648
return
1649
1649
1650
1650
try :
0 commit comments