Mercurial > p > roundup > code
comparison roundup/admin.py @ 7755:417c8ddc98ac
fix: undo last minute edit and try to get make checkin clean.
Fixed admin.py.
Change # noqa: 821 to # noqa: F821 to make ruff ignore undefined
variable in the python 2 branch of the code. Hopefully the flake8
run in CI will accept the change from 821 to F821 and not error with
an undefined variable.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 01 Mar 2024 15:42:24 -0500 |
| parents | 09b216591db5 |
| children | ac2c034542e6 |
comparison
equal
deleted
inserted
replaced
| 7754:09b216591db5 | 7755:417c8ddc98ac |
|---|---|
| 875 except hyperdb.DesignatorError as message: | 875 except hyperdb.DesignatorError as message: |
| 876 raise UsageError(message) | 876 raise UsageError(message) |
| 877 | 877 |
| 878 # get the class | 878 # get the class |
| 879 cl = self.get_class(classname) | 879 cl = self.get_class(classname) |
| 880 prop_obj = properties[propname] | |
| 881 try: | 880 try: |
| 882 if not (self.separator or self.print_designator): | 881 if not (self.separator or self.print_designator): |
| 883 print(cl.get(nodeid, propname)) | 882 print(cl.get(nodeid, propname)) |
| 884 continue | 883 continue |
| 885 | 884 |
| 885 properties = cl.getprops() | |
| 886 prop_obj = properties[propname] | |
| 886 if not (isinstance(prop_obj, | 887 if not (isinstance(prop_obj, |
| 887 (hyperdb.Link, hyperdb.Multilink))): | 888 (hyperdb.Link, hyperdb.Multilink))): |
| 888 raise UsageError(_( | 889 raise UsageError(_( |
| 889 'property %s is not of type' | 890 'property %s is not of type' |
| 890 ' Multilink or Link so -d flag does not ' | 891 ' Multilink or Link so -d flag does not ' |
