projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
eae8075
)
attempt to require MRO::Compat. If that fails, use our own
Daisuke Maki [Wed, 3 Dec 2008 08:17:27 +0000 (08:17 +0000)]
lib/Mouse/Util.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Util.pm
b/lib/Mouse/Util.pm
index
4c194fd
..
28a9125
100644
(file)
--- a/
lib/Mouse/Util.pm
+++ b/
lib/Mouse/Util.pm
@@
-64,7
+64,7
@@
BEGIN {
};
}
- if (defined &mro::get_linear_isa) {
+ if (defined &mro::get_linear_isa || eval { require MRO::Compat; 1; }) {
*get_linear_isa = \&mro::get_linear_isa;
} else {
# this recurses so it isn't pretty