From 9cccd53a7fcf05d60cdab484a2aaf43c5a83038d Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Thu, 18 Aug 2022 14:17:41 +0300 Subject: [PATCH] docs: remove extra imports, use print instead of pprint in example --- README.md | 4 +--- docs/FingerprintApi.md | 4 +--- run_checks.py | 2 -- template/README.mustache | 4 +--- template/api_doc.mustache | 4 +--- 5 files changed, 4 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 27be959f..b6d38e34 100644 --- a/README.md +++ b/README.md @@ -77,11 +77,9 @@ import fingerprint_pro_server_api_sdk Please follow the [installation procedure](#installation--usage) and then run the following: ```python -from __future__ import print_function import fingerprint_pro_server_api_sdk from fingerprint_pro_server_api_sdk import Response from fingerprint_pro_server_api_sdk.rest import ApiException -from pprint import pprint # Configure API key authorization and region configuration = fingerprint_pro_server_api_sdk.Configuration(api_key="SECRET_API_KEY") @@ -97,7 +95,7 @@ limit = 10 # int | Limit scanned results (optional) try: api_response: Response = api_instance.get_visits(visitor_id, limit=2) - pprint(api_response) + print(api_response) except ApiException as e: print("Exception when calling DefaultApi->visitors_visitor_id_get: %s\n" % e) ``` diff --git a/docs/FingerprintApi.md b/docs/FingerprintApi.md index 8dae3d2a..0c5b4dff 100644 --- a/docs/FingerprintApi.md +++ b/docs/FingerprintApi.md @@ -15,11 +15,9 @@ This endpoint allows you to get a history of visits with all available informati ### Example ```python -from __future__ import print_function import fingerprint_pro_server_api_sdk from fingerprint_pro_server_api_sdk import Response from fingerprint_pro_server_api_sdk.rest import ApiException -from pprint import pprint # Configure API key authorization and region configuration = fingerprint_pro_server_api_sdk.Configuration(api_key="SECRET_API_KEY") @@ -35,7 +33,7 @@ limit = 10 # int | Limit scanned results (optional) try: api_response: Response = api_instance.get_visits(visitor_id, limit=2) - pprint(api_response) + print(api_response) except ApiException as e: print("Exception when calling DefaultApi->visitors_visitor_id_get: %s\n" % e) ``` diff --git a/run_checks.py b/run_checks.py index eedf8430..1f2277e0 100644 --- a/run_checks.py +++ b/run_checks.py @@ -1,8 +1,6 @@ -from __future__ import print_function import fingerprint_pro_server_api_sdk from fingerprint_pro_server_api_sdk import Response from fingerprint_pro_server_api_sdk.rest import ApiException -from pprint import pprint import os # configure diff --git a/template/README.mustache b/template/README.mustache index c829b408..8c7f0629 100644 --- a/template/README.mustache +++ b/template/README.mustache @@ -85,11 +85,9 @@ import {{{packageName}}} Please follow the [installation procedure](#installation--usage) and then run the following: ```python -from __future__ import print_function import {{{packageName}}} from {{{packageName}}} import Response from {{{packageName}}}.rest import ApiException -from pprint import pprint # Configure API key authorization and region configuration = {{{packageName}}}.Configuration(api_key="SECRET_API_KEY") @@ -105,7 +103,7 @@ limit = 10 # int | Limit scanned results (optional) try: api_response: Response = api_instance.get_visits(visitor_id, limit=2) - pprint(api_response) + print(api_response) except ApiException as e: print("Exception when calling DefaultApi->visitors_visitor_id_get: %s\n" % e) ``` diff --git a/template/api_doc.mustache b/template/api_doc.mustache index d9e85fee..e1496251 100644 --- a/template/api_doc.mustache +++ b/template/api_doc.mustache @@ -19,11 +19,9 @@ Method | HTTP request | Description ### Example ```python -from __future__ import print_function import {{{packageName}}} from {{{packageName}}} import Response from {{{packageName}}}.rest import ApiException -from pprint import pprint # Configure API key authorization and region configuration = {{{packageName}}}.Configuration(api_key="SECRET_API_KEY") @@ -39,7 +37,7 @@ limit = 10 # int | Limit scanned results (optional) try: api_response: Response = api_instance.get_visits(visitor_id, limit=2) - pprint(api_response) + print(api_response) except ApiException as e: print("Exception when calling DefaultApi->visitors_visitor_id_get: %s\n" % e) ```