[tor-bugs] #32463 [Core Tor/Tor]: TypeError in practracker "includes.py" script

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Nov 11 20:54:18 UTC 2019


#32463: TypeError in practracker "includes.py" script
--------------------+------------------------------
 Reporter:  opara   |          Owner:  (none)
     Type:  defect  |         Status:  new
 Priority:  Low     |      Component:  Core Tor/Tor
  Version:          |       Severity:  Minor
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
 Reviewer:          |        Sponsor:
--------------------+------------------------------
 When practracker finds a forbidden include, it causes a Python TypeError.
 Example:


 {{{
 user at computer:~/tor$ make check-includes
 python3 ./scripts/maint/practracker/includes.py .
 Unusual pattern permitted.h in ./scripts/maint/practracker/testdata
 Forbidden include of lib/lock/compat_mutex.h at
 ./src/lib/evloop/eventqueue.h:8
 Traceback (most recent call last):
   File "./scripts/maint/practracker/includes.py", line 285, in <module>
     main(sys.argv)
   File "./scripts/maint/practracker/includes.py", line 282, in main
     list_advisories=args.list_advisories)
   File "./scripts/maint/practracker/includes.py", line 240, in
 run_check_includes
     files in its enclosing directory.""".format(RULES_FNAME))
 TypeError: 'Error' object is not callable
 make: *** [check-includes] Error 1
 }}}

 This seems to be caused by an err() function being removed from the code
 sometime in the past, but the call to err() was never also removed.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32463>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list