From a6221b1b7849b68cf1de5a479d5d120454685454 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mar 04 2017 14:09:20 +0000 Subject: Misc fix for typos Fix brings correct spelling of 'whether' in documentation Signed-off-by: Abhijeet Kasurde --- diff --git a/pagure/default_config.py b/pagure/default_config.py index 3d9a780..87ce58d 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -179,7 +179,7 @@ PAGURE_AUTH = 'fas' SESSION_COOKIE_SECURE = False SESSION_COOKIE_NAME = 'pagure' -# Boolean specifying wether to check the user's IP address when retrieving +# Boolean specifying whether to check the user's IP address when retrieving # its session. This make things more secure (thus is on by default) but # under certain setup it might not work (for example is there are proxies # in front of the application). diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index 55300e0..926f8a1 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -98,7 +98,7 @@ def create_session(db_url, debug=False, pool_recycle=3600): information with regards to the database engine, the host to connect to, the user and password and the database name. ie: ://:@/ - :kwarg debug: a boolean specifying wether we should have the verbose + :kwarg debug: a boolean specifying whether we should have the verbose output of sqlalchemy or not. :return a Session that can be used to query the database. @@ -3362,7 +3362,7 @@ def clean_input(text, ignore=None): def could_be_text(text): - """ Returns wether we think this chain of character could be text or not + """ Returns whether we think this chain of character could be text or not """ try: text.decode('utf-8') diff --git a/pagure/lib/git.py b/pagure/lib/git.py index ed6582c..40c41da 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -1039,7 +1039,7 @@ def get_revs_between(oldrev, newrev, abspath, refname, forced=False): def is_forced_push(oldrev, newrev, abspath): - """ Returns wether there was a force push between HEAD and BASE. + """ Returns whether there was a force push between HEAD and BASE. Doc: http://stackoverflow.com/a/12258773 """ diff --git a/pagure/lib/model.py b/pagure/lib/model.py index bb6002c..b151450 100644 --- a/pagure/lib/model.py +++ b/pagure/lib/model.py @@ -59,7 +59,7 @@ def create_tables(db_url, alembic_ini=None, acls=None, debug=False): ie: ://:@/ :kwarg alembic_ini, path to the alembic ini file. This is necessary to be able to use alembic correctly, but not for the unit-tests. - :kwarg debug, a boolean specifying wether we should have the verbose + :kwarg debug, a boolean specifying whether we should have the verbose output of sqlalchemy or not. :return a session that can be used to query the database. @@ -2206,7 +2206,7 @@ class Token(BASE): @property def expired(self): - ''' Returns wether a token has expired or not. ''' + ''' Returns whether a token has expired or not. ''' if datetime.datetime.utcnow().date() >= self.expiration.date(): return True else: