Replace python print statement with print() function

This commit is contained in:
Sebastien Helleu 2011-12-24 10:48:08 +01:00
parent 3a5ec0c163
commit a6630f78e0

View file

@ -75,7 +75,7 @@ class Color():
index = int(color) index = int(color)
return '\x01(Fr%s)' % self.color_options[index] return '\x01(Fr%s)' % self.color_options[index]
except: except:
print 'Error decoding WeeChat color "%s"' % color print('Error decoding WeeChat color "%s"' % color)
return '' return ''
def _convert_terminal_color(self, fg_bg, attrs, color): def _convert_terminal_color(self, fg_bg, attrs, color):
@ -83,7 +83,7 @@ class Color():
index = int(color) index = int(color)
return '\x01(%s%s#%s)' % (fg_bg, attrs, self._rgb_color(index)) return '\x01(%s%s#%s)' % (fg_bg, attrs, self._rgb_color(index))
except: except:
print 'Error decoding terminal color "%s"' % color print('Error decoding terminal color "%s"' % color)
return '' return ''
def _convert_color_attr(self, fg_bg, color): def _convert_color_attr(self, fg_bg, color):
@ -104,7 +104,7 @@ class Color():
index = int(color) index = int(color)
return self._convert_terminal_color(fg_bg, attrs, WEECHAT_BASIC_COLORS[index][1]) return self._convert_terminal_color(fg_bg, attrs, WEECHAT_BASIC_COLORS[index][1])
except: except:
print 'Error decoding color "%s"' % color print('Error decoding color "%s"' % color)
return '' return ''
def _attrcode_to_char(self, code): def _attrcode_to_char(self, code):