File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import re
6
6
7
- from itertools import izip_longest
7
+ try :
8
+ from itertools import zip_longest
9
+ except ImportError :
10
+ from itertools import izip_longest as zip_longest
8
11
9
12
import weechat
10
13
11
14
SCRIPT_NAME = "topicdiff"
12
15
SCRIPT_AUTHOR = "Dafydd Harries <daf@rhydd.org>"
13
- SCRIPT_VERSION = "0.3 "
16
+ SCRIPT_VERSION = "0.4 "
14
17
SCRIPT_LICENSE = "GPL3"
15
18
SCRIPT_DESC = "Show differences between old and new topics."
16
19
@@ -25,7 +28,7 @@ def topic_changed(buffer, new_topic):
25
28
old_chunks = topic_chunks (topics [buffer ])
26
29
new_chunks = topic_chunks (new_topic )
27
30
28
- for old_chunk , new_chunk in izip_longest (old_chunks , new_chunks ):
31
+ for old_chunk , new_chunk in zip_longest (old_chunks , new_chunks ):
29
32
if old_chunk and old_chunk not in new_chunks :
30
33
weechat .prnt (buffer , '%s-\t %s' % (
31
34
weechat .color ('red' ),
You can’t perform that action at this time.
0 commit comments