~flormayer/loggerhead/path

« back to all changes in this revision

Viewing changes to loggerhead/controllers/annotate_ui.py

  • Committer: Florian Mayer
  • Date: 2008-07-02 19:40:08 UTC
  • Revision ID: flormayer@aim.com-20080702194008-c511bjvs7ndpxzc0
Replaced posixpath with os.path to provide cross-platform compatibility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#
19
19
 
20
20
import os
21
 
import posixpath
 
21
import os.path
22
22
 
23
23
from paste.httpexceptions import HTTPBadRequest
24
24
 
29
29
def dirname(path):
30
30
    while path.endswith('/'):
31
31
        path = path[:-1]
32
 
    path = posixpath.dirname(path)
 
32
    path = os.path.dirname(path)
33
33
    return path
34
34
 
35
35