Refactoring const to constants, to provide for lxml docbook namespaces.
authorFredrik Unger <fred@tree.se>
Sun, 28 Oct 2012 07:12:41 +0000 (08:12 +0100)
committerFredrik Unger <fred@tree.se>
Sun, 28 Oct 2012 07:12:41 +0000 (08:12 +0100)
treecutter/const.py [deleted file]
treecutter/constants.py [new file with mode: 0644]
treecutter/directory.py
treecutter/page.py

diff --git a/treecutter/const.py b/treecutter/const.py
deleted file mode 100644 (file)
index bdbc911..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/python
-valid_scripts = ['.py','.pl']
-
-PREFIXES={u'db': u'http://docbook.org/ns/docbook',
-          u'xi': u'http://www.w3.org/2001/XInclude',
-          u'xl': u'http://www.w3.org/1999/xlink',
-          u'html' : u'http://www.w3.org/1999/xhtml'}
-
diff --git a/treecutter/constants.py b/treecutter/constants.py
new file mode 100644 (file)
index 0000000..bdbc911
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+valid_scripts = ['.py','.pl']
+
+PREFIXES={u'db': u'http://docbook.org/ns/docbook',
+          u'xi': u'http://www.w3.org/2001/XInclude',
+          u'xl': u'http://www.w3.org/1999/xlink',
+          u'html' : u'http://www.w3.org/1999/xhtml'}
+
index 0c633a784b11f04e158fbfdd723e8cb59168bab5..dc60c379718e4a016c5fecc55eeb75610c5def31 100644 (file)
@@ -2,7 +2,7 @@
 import os
 import fnmatch
 from amara import bindery
-import treecutter.const as const
+import treecutter.constants as const
 
 class Directory():
     """Class containing the state of the directory with articles"""
index 1cb2bafe9b19a809b5ea9df334a5bdeb0b82dd97..54ed95768959790d8d61874da1bc5fb1a436d7a6 100644 (file)
@@ -7,7 +7,7 @@ from amara.xslt import transform
 from Cheetah.Template import Template
 from pkg_resources import resource_filename, resource_listdir
 from time import time
-import treecutter.const as const
+import treecutter.constants as const
 from treecutter.tools import mkdir_p
 
 class Page():