Skip to content

Commit 322010d

Browse files
committed
Updated minor problems in docstrings
1 parent 52d37bb commit 322010d

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

pycaching/geo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def __str__(self):
408408

409409

410410
class Block(object):
411-
"""Container for grouped :class:`.UTFGridPoint`s inside a tile"""
411+
"""Container for grouped :class:`.UTFGridPoint`s inside a tile."""
412412

413413
# this class can have a lot of instances so use __slots__
414414
__slots__ = "tile", "cache_wp", "cache_name", "_points", "_xlim", "_ylim", "__weakref__"

pycaching/geocaching.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,6 @@ def load_trackable(self, tid):
345345
"""Return a :class:`.Trackable` object by its trackable ID.
346346
347347
.. deprecated:: 3.4
348-
Use :meth:`.get_trackable` instead."""
348+
Use :meth:`.get_trackable` instead.
349+
"""
349350
return self.get_trackable(tid)

pycaching/trackable.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def load(self):
162162
163163
:raise LoadError: If trackable loading fails (probably because of not existing cache).
164164
"""
165-
166165
# pick url based on what info we have right now
167166
if hasattr(self, "url"):
168167
url = self.url

pycaching/util.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919

2020
def lazy_loaded(func):
21-
"""Decorator providing lazy loading. Used by Cache and Trackable."""
22-
21+
"""Decorator providing lazy loading."""
2322
@functools.wraps(func)
2423
def wrapper(*args, **kwargs):
2524
self = args[0]
@@ -37,10 +36,10 @@ def wrapper(*args, **kwargs):
3736
# copied from:
3837
# https://wiki.python.org/moin/PythonDecoratorLibrary#Generating_Deprecation_Warnings
3938
def deprecated(func):
40-
"""This is a decorator which can be used to mark functions
41-
as deprecated. It will result in a warning being emitted
42-
when the function is used."""
39+
"""Decorator to mark fuction as deprecated.
4340
41+
It will result in a warning being emitted when the function is used.
42+
"""
4443
@functools.wraps(func)
4544
def new_func(*args, **kwargs):
4645
warnings.warn_explicit(
@@ -93,9 +92,7 @@ def format_date(date, user_date_format):
9392

9493
def get_possible_attributes():
9594
"""Return a dict of all possible attributes parsed from Groundspeak's website."""
96-
97-
# imports are here not to slow down other parts of program which normally
98-
# doesn't use this method
95+
# imports are here not to slow down other parts of program which normally doesn't use this method
9996
from itertools import chain
10097
import requests
10198
from bs4 import BeautifulSoup

0 commit comments

Comments
 (0)