Skip to content

Commit

Permalink
itools: Update datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
David Versmisse authored and J. David Ibanez committed Mar 19, 2010
1 parent fa6ed62 commit 1aaf290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itools/datatypes.rst
Expand Up @@ -150,15 +150,15 @@ types:
>>> QName.encode((None, 'href'))
'href'

.. class:: itools.vfs.FileName
.. class:: itools.fs.FileName

Usually filenames include extensions to indicate the file type, and
sometimes other information like the language. The filename decoder will
parse a filename and return a tuple where the first element is the
filename, the second element is the file type, and the last element is the
language. For example::

>>> from itools.vfs import FileName
>>> from itools.fs import FileName
>>> FileName.decode('index.html.en')
('index', 'html', 'en')
>>> FileName.decode('index.html')
Expand Down

0 comments on commit 1aaf290

Please sign in to comment.