@@ -460,71 +460,59 @@ class IdleCuller(Application):
460460
461461 api_page_size = Int (
462462 0 ,
463- help = dedent (
464- """
463+ help = dedent ("""
465464 Number of users to request per page,
466465 when using JupyterHub 2.0's paginated user list API.
467466 Default: user the server-side default configured page size.
468- """
469- ).strip (),
467+ """ ).strip (),
470468 ).tag (
471469 config = True ,
472470 )
473471
474472 concurrency = Int (
475473 10 ,
476- help = dedent (
477- """
474+ help = dedent ("""
478475 Limit the number of concurrent requests made to the Hub.
479476
480477 Deleting a lot of users at the same time can slow down the Hub,
481478 so limit the number of API requests we have outstanding at any given time.
482- """
483- ).strip (),
479+ """ ).strip (),
484480 ).tag (
485481 config = True ,
486482 )
487483
488484 config_file = Unicode (
489485 "idle_culler_config.py" ,
490- help = dedent (
491- """
486+ help = dedent ("""
492487 Config file to load.
493- """
494- ).strip (),
488+ """ ).strip (),
495489 ).tag (
496490 config = True ,
497491 )
498492
499493 cull_admin_users = Bool (
500494 True ,
501- help = dedent (
502- """
495+ help = dedent ("""
503496 Whether admin users should be culled (only if --cull-users=true).
504- """
505- ).strip (),
497+ """ ).strip (),
506498 ).tag (
507499 config = True ,
508500 )
509501
510502 cull_default_servers = Bool (
511503 True ,
512- help = dedent (
513- """
504+ help = dedent ("""
514505 Whether default servers should be culled (only if --cull-default-servers=true).
515- """
516- ).strip (),
506+ """ ).strip (),
517507 ).tag (
518508 config = True ,
519509 )
520510
521511 cull_every = Int (
522512 0 ,
523- help = dedent (
524- """
513+ help = dedent ("""
525514 The interval (in seconds) for checking for idle servers to cull.
526- """
527- ).strip (),
515+ """ ).strip (),
528516 ).tag (
529517 config = True ,
530518 )
@@ -535,46 +523,38 @@ def _default_cull_every(self):
535523
536524 cull_named_servers = Bool (
537525 True ,
538- help = dedent (
539- """
526+ help = dedent ("""
540527 Whether named servers should be culled (only if --cull-named-servers=true).
541- """
542- ).strip (),
528+ """ ).strip (),
543529 ).tag (
544530 config = True ,
545531 )
546532
547533 cull_users = Bool (
548534 False ,
549- help = dedent (
550- """
535+ help = dedent ("""
551536 Cull users in addition to servers.
552537
553538 This is for use in temporary-user cases such as tmpnb.
554- """
555- ).strip (),
539+ """ ).strip (),
556540 ).tag (
557541 config = True ,
558542 )
559543
560544 generate_config = Bool (
561545 False ,
562- help = dedent (
563- """
546+ help = dedent ("""
564547 Generate default config file.
565- """
566- ).strip (),
548+ """ ).strip (),
567549 ).tag (
568550 config = True ,
569551 )
570552
571553 internal_certs_location = Unicode (
572554 "internal-ssl" ,
573- help = dedent (
574- """
555+ help = dedent ("""
575556 The location of generated internal-ssl certificates (only needed with --ssl-enabled=true).
576- """
577- ).strip (),
557+ """ ).strip (),
578558 ).tag (
579559 config = True ,
580560 )
@@ -597,58 +577,48 @@ def _log_format_default(self):
597577
598578 max_age = Int (
599579 0 ,
600- help = dedent (
601- """
580+ help = dedent ("""
602581 The maximum age (in seconds) of servers that should be culled even if they are active.",
603- """
604- ).strip (),
582+ """ ).strip (),
605583 ).tag (
606584 config = True ,
607585 )
608586
609587 remove_named_servers = Bool (
610588 False ,
611- help = dedent (
612- """
589+ help = dedent ("""
613590 Remove named servers in addition to stopping them.
614591
615592 This is useful for a BinderHub that uses authentication and named servers.
616- """
617- ).strip (),
593+ """ ).strip (),
618594 ).tag (
619595 config = True ,
620596 )
621597
622598 ssl_enabled = Bool (
623599 False ,
624- help = dedent (
625- """
600+ help = dedent ("""
626601 Whether the Jupyter API endpoint has TLS enabled.
627- """
628- ).strip (),
602+ """ ).strip (),
629603 ).tag (
630604 config = True ,
631605 )
632606
633607 timeout = Int (
634608 600 ,
635- help = dedent (
636- """
609+ help = dedent ("""
637610 The idle timeout (in seconds).
638- """
639- ).strip (),
611+ """ ).strip (),
640612 ).tag (
641613 config = True ,
642614 )
643615
644616 url = Unicode (
645617 os .environ .get ("JUPYTERHUB_API_URL" ),
646618 allow_none = True ,
647- help = dedent (
648- """
619+ help = dedent ("""
649620 The JupyterHub API URL.
650- """
651- ).strip (),
621+ """ ).strip (),
652622 ).tag (
653623 config = True ,
654624 )
0 commit comments