##// END OF EJS Templates
Make igrpentry and ipwdentry comparable.
walter.doerwald -
Show More
@@ -1290,6 +1290,12 b' class ipwdentry(object):'
1290 1290 self._id = id
1291 1291 self._entry = None
1292 1292
1293 def __eq__(self, other):
1294 return self.__class__ is other.__class__ and self._id == other._id
1295
1296 def __ne__(self, other):
1297 return self.__class__ is not other.__class__ or self._id != other._id
1298
1293 1299 def _getentry(self):
1294 1300 if self._entry is None:
1295 1301 if isinstance(self._id, basestring):
@@ -1371,6 +1377,12 b' class igrpentry(object):'
1371 1377 self._id = id
1372 1378 self._entry = None
1373 1379
1380 def __eq__(self, other):
1381 return self.__class__ is other.__class__ and self._id == other._id
1382
1383 def __ne__(self, other):
1384 return self.__class__ is not other.__class__ or self._id != other._id
1385
1374 1386 def _getentry(self):
1375 1387 if self._entry is None:
1376 1388 if isinstance(self._id, basestring):
@@ -4,6 +4,7 b''
4 4 "refreshfind" (mapped to "R") does the same but tries to go back to the same
5 5 object the cursor was on before the refresh. The command "markrange" is
6 6 mapped to "%" now.
7 * IPython/Extensions/ibrowse.py: Make igrpentry and ipwdentry comparable.
7 8
8 9 2006-11-29 Fernando Perez <Fernando.Perez@colorado.edu>
9 10
General Comments 0
You need to be logged in to leave comments. Login now