diff options
Diffstat (limited to 'dsextras.py')
-rw-r--r-- | dsextras.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dsextras.py b/dsextras.py index 9fc79c1..2f8d89a 100644 --- a/dsextras.py +++ b/dsextras.py @@ -66,7 +66,7 @@ def list_files(dir): that matches *.glade. It also looks up the full path""" if dir.find(os.sep) != -1: parts = dir.split(os.sep) - dir = string.join(parts[:-1], os.sep) + dir = os.sep.join(parts[:-1]) pattern = parts[-1] else: pattern = dir @@ -421,7 +421,7 @@ class TemplateExtension(PkgConfigExtension): if load_types: del kwargs['load_types'] - if kwargs.has_key('output'): + if 'output' in kwargs: kwargs['name'] = kwargs['output'] del kwargs['output'] |