/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos

  • Committer: Teddy Hogeborn
  • Date: 2014-07-25 22:48:57 UTC
  • mto: This revision was merged to the branch mainline in revision 724.
  • Revision ID: teddy@recompile.se-20140725224857-j9hsaayv1blu9i93
Use set literals.

* mandos (main/cleanup): Use a set literal for the "exclude" variable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2774
2774
                
2775
2775
                # A list of attributes that can not be pickled
2776
2776
                # + secret.
2777
 
                exclude = set(("bus", "changedstate", "secret",
2778
 
                               "checker", "server_settings"))
 
2777
                exclude = { "bus", "changedstate", "secret",
 
2778
                            "checker", "server_settings" }
2779
2779
                for name, typ in (inspect.getmembers
2780
2780
                                  (dbus.service.Object)):
2781
2781
                    exclude.add(name)