equal
deleted
inserted
replaced
91 if total is not None: |
91 if total is not None: |
92 expander['N'] = lambda: str(total) |
92 expander['N'] = lambda: str(total) |
93 if seqno is not None: |
93 if seqno is not None: |
94 expander['n'] = lambda: str(seqno) |
94 expander['n'] = lambda: str(seqno) |
95 if total is not None and seqno is not None: |
95 if total is not None and seqno is not None: |
96 expander['n'] = lambda:str(seqno).zfill(len(str(total))) |
96 expander['n'] = lambda: str(seqno).zfill(len(str(total))) |
97 if pathname is not None: |
97 if pathname is not None: |
98 expander['s'] = lambda: os.path.basename(pathname) |
98 expander['s'] = lambda: os.path.basename(pathname) |
99 expander['d'] = lambda: os.path.dirname(pathname) or '.' |
99 expander['d'] = lambda: os.path.dirname(pathname) or '.' |
100 expander['p'] = lambda: pathname |
100 expander['p'] = lambda: pathname |
101 |
101 |