monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone: 1d7f0b547697172f9806535e147


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone: 1d7f0b547697172f9806535e1479911aed3ad783
Date: Wed, 23 Nov 2011 22:25:24 +0100 (CET)

revision:            1d7f0b547697172f9806535e1479911aed3ad783
date:                2011-11-23T21:24:05
author:              Richard Hopkins <address@hidden>
branch:              net.venge.monotone
changelog:
Use 'require' + 'import' instead of 'use' for Win32::Console::ANSI

'use' results in a compile error if the module isn't found, such as on
non-windows systems.

manifest:
format_version "1"

new_manifest [c8c192723468a503d5af031e05c85981786b4f8a]

old_revision [14cf20bd261593dbe98b0d5c64bc5690892f03f2]

patch "contrib/colortone.pl"
 from [b318a7b446688962e1cc41264329efd8ff6671af]
   to [4de0235589831da1b9daeeba18841074c240fe78]
============================================================
--- contrib/colortone.pl	b318a7b446688962e1cc41264329efd8ff6671af
+++ contrib/colortone.pl	4de0235589831da1b9daeeba18841074c240fe78
@@ -45,7 +45,8 @@ if ( $^O eq 'MSWin32' ) {
 use Term::ANSIColor;
 
 if ( $^O eq 'MSWin32' ) {
-    use Win32::Console::ANSI;
+    require Win32::Console::ANSI;
+    import  Win32::Console::ANSI;
 }
 
 # pattern => attributes

reply via email to

[Prev in Thread] Current Thread [Next in Thread]