Skip to content

Commit

Permalink
Merge pull request #29 from pfernique/master
Browse files Browse the repository at this point in the history
Transform tabs in spaces
  • Loading branch information
pfernique authored Aug 10, 2016
2 parents 0c3be4d + b0512da commit ba5c719
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/py/autowig/asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def write(self, database=None, force=False):

def remove(self):
if self.on_disk:
os.remove(self.globalname)
os.remove(self.globalname)

@property
def is_empty(self):
Expand Down Expand Up @@ -1424,11 +1424,11 @@ def templates(self):

@property
def access(self):
accesses = ['none', 'public', 'protected', 'private']
accesses = ['none', 'public', 'protected', 'private']
access = accesses.index(getattr(self, '_access', self.specialize.access))
for template in self.templates:
access = max(access, accesses.index(template.desugared_type.unqualified_type.access))
return accesses[access]
for template in self.templates:
access = max(access, accesses.index(template.desugared_type.unqualified_type.access))
return accesses[access]

@access.setter
def access(self, access):
Expand Down

0 comments on commit ba5c719

Please sign in to comment.