[gestion/darcs_send_changes] Utilisation de cElementTree pour ragnarok
darcs-hash:20090110140136-ffbb2-85460af2f8981c3a6bc713da283f43c683c3ec69.gz
This commit is contained in:
parent
83c0272d2c
commit
733e2d5e69
1 changed files with 8 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
# ---------------------
|
# ---------------------
|
||||||
#
|
#
|
||||||
# Copyright (C) 2007 Jeremie Dimino <jeremie@dimino.org>
|
# Copyright (C) 2007 Jeremie Dimino <jeremie@dimino.org>
|
||||||
# Copyright (C) 2007 Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
|
# Copyright (C) 2007,2008 Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
|
||||||
#
|
#
|
||||||
# This file is free software; you can redistribute it and/or modify
|
# This file is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -30,10 +30,13 @@ import commands, os, sys, email
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
except:
|
except ImportError:
|
||||||
sys.stderr.write("darcs_send_changes requiert le paquet python-lxml.\n")
|
try:
|
||||||
sys.stderr.flush()
|
import cElementTree as etree
|
||||||
sys.exit(1)
|
except ImportError:
|
||||||
|
sys.stderr.write("darcs_send_changes requiert python-lxml ou cElementTree.\n")
|
||||||
|
sys.stderr.flush()
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
sys.path.append("/usr/scripts/gestion")
|
sys.path.append("/usr/scripts/gestion")
|
||||||
from affich_tools import cprint, encoding
|
from affich_tools import cprint, encoding
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue