Merge pull request #1745 from RonnyPfannschmidt/skip-compat
skipping plugin: remove python2.5 compat code
This commit is contained in:
commit
1204cbade4
|
@ -108,11 +108,7 @@ class MarkEvaluator:
|
||||||
|
|
||||||
def _getglobals(self):
|
def _getglobals(self):
|
||||||
d = {'os': os, 'sys': sys, 'config': self.item.config}
|
d = {'os': os, 'sys': sys, 'config': self.item.config}
|
||||||
func = self.item.obj
|
d.update(self.item.obj.__globals__)
|
||||||
try:
|
|
||||||
d.update(func.__globals__)
|
|
||||||
except AttributeError:
|
|
||||||
d.update(func.func_globals)
|
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def _istrue(self):
|
def _istrue(self):
|
||||||
|
|
Loading…
Reference in New Issue