summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 7181fee56e..c2a5566ca6 100644
--- a/toke.c
+++ b/toke.c
@@ -5200,8 +5200,7 @@ Perl_yylex(pTHX)
}
else if (gv && !gvp
&& -tmp==KEY_lock /* XXX generalizable kludge */
- && GvCVu(gv)
- && !hv_fetchs(GvHVn(PL_incgv), "Thread.pm", FALSE))
+ && GvCVu(gv))
{
tmp = 0; /* any sub overrides "weak" keyword */
}