/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/lockable_files.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2017-06-10 02:49:30 UTC
  • mfrom: (6677.1.4 py3_bootstrap)
  • Revision ID: breezy.the.bot@gmail.com-20170610024930-enw8wdbjy9s4dtnm
Progress on Python 3 to get TestCaseWithTransport working

Merged from https://code.launchpad.net/~gz/brz/py3_bootstrap/+merge/325439

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
 
103
103
    def _escape(self, file_or_path):
104
104
        """DEPRECATED: Do not use outside this class"""
105
 
        if not isinstance(file_or_path, basestring):
106
 
            file_or_path = '/'.join(file_or_path)
107
105
        if file_or_path == '':
108
106
            return u''
109
 
        return urlutils.escape(osutils.safe_unicode(file_or_path))
 
107
        return urlutils.escape(file_or_path)
110
108
 
111
109
    def _find_modes(self):
112
110
        """Determine the appropriate modes for files and directories.
203
201
            try:
204
202
                self._lock.unlock()
205
203
            finally:
206
 
                self._lock_mode = self._lock_count = None
 
204
                self._lock_count = 0
 
205
                self._lock_mode = None
207
206
 
208
207
    def is_locked(self):
209
208
        """Return true if this LockableFiles group is locked"""