Copied from code.py, to remove the dependency
(file, newvalue)
| 170 | |
| 171 | @undoc |
| 172 | def softspace(file, newvalue): |
| 173 | """Copied from code.py, to remove the dependency""" |
| 174 | |
| 175 | oldvalue = 0 |
| 176 | try: |
| 177 | oldvalue = file.softspace |
| 178 | except AttributeError: |
| 179 | pass |
| 180 | try: |
| 181 | file.softspace = newvalue |
| 182 | except (AttributeError, TypeError): |
| 183 | # "attribute-less object" or "read-only attributes" |
| 184 | pass |
| 185 | return oldvalue |
| 186 | |
| 187 | @undoc |
| 188 | def no_op(*a, **kw): |
no outgoing calls
no test coverage detected
searching dependent graphs…