@@ -580,7 +580,7 @@ def ListTweaks(self):
580580 @staticmethod
581581 def filterOutDefaultTweaks (ini_tweaks ):
582582 """Filter out default tweaks from tweaks iterable."""
583- return filter ( lambda x : not bosh .iniInfos [x ].is_default_tweak , ini_tweaks )
583+ return [ x for x in ini_tweaks if not bosh .iniInfos [x ].is_default_tweak ]
584584
585585 def _toDelete (self , items ):
586586 items = super (INIList , self )._toDelete (items )
@@ -806,7 +806,7 @@ def dndAllow(self, event):
806806 pinned = load_order .filter_pinned (self .GetSelected ())
807807 if pinned :
808808 msg = _ (u"You can't reorder the following mods:\n " +
809- u', ' .join (map ( unicode , pinned ) ))
809+ u', ' .join (unicode ( s ) for s in pinned ))
810810 continue_key = 'bash.mods.dnd.pinned.continue'
811811 if msg :
812812 balt .askContinue (self , msg , continue_key )
@@ -979,8 +979,8 @@ def OnKeyUp(self,event):
979979 self ._toggle_active_state (* toggle_target )
980980 # Ctrl+C: Copy file(s) to clipboard
981981 elif event .CmdDown () and code == ord ('C' ):
982- balt .copyListToClipboard ([ self .data_store [mod ].getPath () .s
983- for mod in self .GetSelected ()] )
982+ balt .copyListToClipboard (self .data_store [mod ].abs_path .s
983+ for mod in self .GetSelected ())
984984 super (ModList , self ).OnKeyUp (event )
985985
986986 def OnLeftDown (self ,event ):
@@ -1909,9 +1909,8 @@ def OnKeyUp(self,event):
19091909 code = event .GetKeyCode ()
19101910 # Ctrl+C: Copy file(s) to clipboard
19111911 if event .CmdDown () and code == ord ('C' ):
1912- sel = map (lambda save : self .data_store [save ].getPath ().s ,
1913- self .GetSelected ())
1914- balt .copyListToClipboard (sel )
1912+ balt .copyListToClipboard (self .data_store [save ].abs_path .s
1913+ for save in self .GetSelected ())
19151914 super (SaveList , self ).OnKeyUp (event )
19161915
19171916 def OnLeftDown (self ,event ):
@@ -2486,9 +2485,8 @@ def OnKeyUp(self,event):
24862485 self .addMarker ()
24872486 # Ctrl+C: Copy file(s) to clipboard
24882487 elif event .CmdDown () and code == ord ('C' ):
2489- sel = map (lambda x : bass .dirs ['installers' ].join (x ).s ,
2490- self .GetSelected ())
2491- balt .copyListToClipboard (sel )
2488+ balt .copyListToClipboard (bass .dirs ['installers' ].join (x ).s
2489+ for x in self .GetSelected ())
24922490 super (InstallersList , self ).OnKeyUp (event )
24932491
24942492 # Installer specific ------------------------------------------------------
@@ -2836,7 +2834,7 @@ def OnCheckSubItem(self,event):
28362834 installer .extras_dict ['fomod_active' ] = self .gSubList .IsChecked (0 )
28372835 self .gSubList .Delete (0 )
28382836 has_fomod = True
2839- for index in range (self .gSubList .GetCount ()):
2837+ for index in xrange (self .gSubList .GetCount ()):
28402838 installer .subActives [index + 1 ] = self .gSubList .IsChecked (index )
28412839 if has_fomod :
28422840 self .gSubList .Insert ("fomod" , 0 )
@@ -3138,9 +3136,8 @@ def OnKeyUp(self,event):
31383136 code = event .GetKeyCode ()
31393137 # Ctrl+C: Copy file(s) to clipboard
31403138 if event .CmdDown () and code == ord ('C' ):
3141- sel = map (lambda x : bosh .screen_infos .store_dir .join (x ).s ,
3142- self .GetSelected ())
3143- balt .copyListToClipboard (sel )
3139+ balt .copyListToClipboard (self .data_store [screen ].abs_path .s
3140+ for screen in self .GetSelected ())
31443141 super (ScreensList , self ).OnKeyUp (event )
31453142
31463143#------------------------------------------------------------------------------
@@ -3412,7 +3409,7 @@ def Execute(self):
34123409 iMods = None
34133410 iInstallers = None
34143411 iDelete = None
3415- for i in range (Link .Frame .notebook .GetPageCount ()):
3412+ for i in xrange (Link .Frame .notebook .GetPageCount ()):
34163413 pageTitle = Link .Frame .notebook .GetPageText (i )
34173414 if pageTitle == tabInfo ['Mods' ][1 ]:
34183415 iMods = i
@@ -3658,7 +3655,7 @@ def UnhideButton(self,link):
36583655 self ._addButton (link )
36593656 button = self .buttons .pop ()
36603657 thisIndex , insertBefore = order .index (link .uid ), 0
3661- for i in range (len (self .buttons )):
3658+ for i in xrange (len (self .buttons )):
36623659 otherlink = self .GetLink (index = i )
36633660 indexOther = order .index (otherlink .uid )
36643661 if indexOther > thisIndex :
0 commit comments