Copied from code.py, to remove the dependency
(file, newvalue)
| 233 | |
| 234 | @undoc |
| 235 | def softspace(file, newvalue): |
| 236 | """Copied from code.py, to remove the dependency""" |
| 237 | |
| 238 | oldvalue = 0 |
| 239 | try: |
| 240 | oldvalue = file.softspace |
| 241 | except AttributeError: |
| 242 | pass |
| 243 | try: |
| 244 | file.softspace = newvalue |
| 245 | except (AttributeError, TypeError): |
| 246 | # "attribute-less object" or "read-only attributes" |
| 247 | pass |
| 248 | return oldvalue |
| 249 | |
| 250 | @undoc |
| 251 | def no_op(*a, **kw): |