~nataliabidart/magicicada-client/snapping

« back to all changes in this revision

Viewing changes to ubuntuone/platform/__init__.py

  • Committer: Magicicada Bot
  • Author(s): Natalia
  • Date: 2015-09-19 23:23:53 UTC
  • mfrom: (1408.1.1 fix-lint-tests)
  • Revision ID: magicicada_bot-20150919232353-cadtca1w1sh5mu7c
[r=nataliabidart] - Fixed lint issues on ubuntuone/ folder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    except UnicodeDecodeError:
56
56
        raise AssertionError('The path %r must be encoded in utf-8' % path)
57
57
    tilde = '~'
58
 
    if not path.startswith(tilde) or \
59
 
    (len(path) > 1 and path[1:2] != os.path.sep):
 
58
    if (not path.startswith(tilde) or
 
59
            (len(path) > 1 and path[1:2] != os.path.sep)):
60
60
        return path
61
61
    result = path.replace('~', user_home, 1)
62
62