/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/command/command.py

  • Committer: Tim Marston
  • Date: 2021-09-01 12:55:42 UTC
  • Revision ID: tim@ed.am-20210901125542-zbuzpswfo7mmm5br
fix broken use of self in @staticmethod

Show diffs side-by-side

added added

removed removed

20
20
 
21
21
 
22
22
import os
 
23
 
23
24
import stdhome.the as the
24
25
from stdhome.walker.walker import Walker
25
26
 
62
63
                return ( rel_file, abs_file )
63
64
 
64
65
 
65
 
        @staticmethod
66
 
        def expand_files( files, recurse = True ):
 
66
        @classmethod
 
67
        def expand_files( cls, files, recurse = True ):
67
68
                """Returns a unique, sorted list of relative files, calculated from the list
68
69
                provided, which is made up from individual files and directories
69
70
                relative to the CWD (and which must be contained within the home
77
78
 
78
79
                # iterate through file list
79
80
                for file in files:
80
 
                        ( rel_file, abs_file ) = self.resolve_homedir_file( file )
 
81
                        ( rel_file, abs_file ) = cls.resolve_homedir_file( file )
81
82
 
82
83
                        # check that file exists in repository
83
84
                        repo_file = os.path.join( the.repo.full_dir, rel_file )
101
102
                print("is done with the staging commands.  Note, some primary commands will not work")
102
103
                print("when there are staged changes.  You can revert all staged changes with the")
103
104
                print("stage-revert command.")
104