Skip to content

Commit 41be71f

Browse files
asottilebehackett
authored andcommitted
Trim trailing whitespace
1 parent ff81fbb commit 41be71f

18 files changed

+51
-51
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Contributing to PyMongo
22
=======================
33

44
PyMongo has a large `community
5-
<http://api.mongodb.org/python/current/contributors.html>`_ and
5+
<http://api.mongodb.org/python/current/contributors.html>`_ and
66
contributions are always encouraged. Contributions can be as simple as
77
minor tweaks to the documentation. Please read these guidelines before
88
sending a pull request.

bson/_cbsonmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,8 +1189,8 @@ static int _write_element_to_buffer(PyObject* self, buffer_t buffer,
11891189
} else if (PyObject_TypeCheck(value, state->REType)) {
11901190
return _write_regex_to_buffer(buffer, type_byte, value);
11911191
}
1192-
1193-
/*
1192+
1193+
/*
11941194
* Try Mapping and UUID last since we have to import
11951195
* them if we're in a sub-interpreter.
11961196
*/
@@ -1982,7 +1982,7 @@ static PyObject* get_value(PyObject* self, PyObject* name, const char* buffer,
19821982
}
19831983
if ((PyDict_SetItemString(kwargs, "bytes", data)) == -1)
19841984
goto uuiderror;
1985-
1985+
19861986
}
19871987
if ((type_to_create = _get_object(state->UUID, "uuid", "UUID"))) {
19881988
value = PyObject_Call(type_to_create, args, kwargs);

bson/max_key.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def __ne__(self, other):
3636

3737
def __le__(self, other):
3838
return isinstance(other, MaxKey)
39-
39+
4040
def __lt__(self, dummy):
4141
return False
4242

4343
def __ge__(self, dummy):
4444
return True
45-
45+
4646
def __gt__(self, other):
4747
return not isinstance(other, MaxKey)
4848

bson/min_key.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ def __hash__(self):
3333

3434
def __ne__(self, other):
3535
return not self == other
36-
36+
3737
def __le__(self, dummy):
3838
return True
39-
39+
4040
def __lt__(self, other):
4141
return not isinstance(other, MinKey)
4242

4343
def __ge__(self, other):
4444
return isinstance(other, MinKey)
45-
45+
4646
def __gt__(self, dummy):
4747
return False
4848

bson/time64.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
33
Copyright (c) 2007-2010 Michael G Schwern
44
@@ -30,7 +30,7 @@ THE SOFTWARE.
3030
3131
Programmers who have available to them 64-bit time values as a 'long
3232
long' type can use localtime64_r() and gmtime64_r() which correctly
33-
converts the time even on 32-bit systems. Whether you have 64-bit time
33+
converts the time even on 32-bit systems. Whether you have 64-bit time
3434
values will depend on the operating system.
3535
3636
localtime64_r() is a 64-bit equivalent of localtime_r().
@@ -278,7 +278,7 @@ static int check_tm(struct TM *tm)
278278

279279
assert(tm->tm_wday >= 0);
280280
assert(tm->tm_wday <= 6);
281-
281+
282282
assert(tm->tm_yday >= 0);
283283
assert(tm->tm_yday <= length_of_year[IS_LEAP(tm->tm_year)]);
284284

@@ -354,7 +354,7 @@ static int safe_year(const Year year)
354354
year_cycle += 17;
355355

356356
year_cycle %= SOLAR_CYCLE_LENGTH;
357-
if( year_cycle < 0 )
357+
if( year_cycle < 0 )
358358
year_cycle = SOLAR_CYCLE_LENGTH + year_cycle;
359359

360360
assert( year_cycle >= 0 );
@@ -651,7 +651,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p)
651651
p->tm_hour = v_tm_hour;
652652
p->tm_mon = v_tm_mon;
653653
p->tm_wday = v_tm_wday;
654-
654+
655655
assert(check_tm(p));
656656

657657
return p;
@@ -735,7 +735,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm)
735735
local_tm->tm_year++;
736736
}
737737

738-
/* GMT is Jan 1st, xx01 year, but localtime is still Dec 31st
738+
/* GMT is Jan 1st, xx01 year, but localtime is still Dec 31st
739739
in a non-leap xx00. There is one point in the cycle
740740
we can't account for which the safe xx00 year is a leap
741741
year. So we need to correct for Dec 31st comming out as
@@ -745,7 +745,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm)
745745
local_tm->tm_yday--;
746746

747747
assert(check_tm(local_tm));
748-
748+
749749
return local_tm;
750750
}
751751

bson/time64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct TM64 {
3737
#define TM TM64
3838
#else
3939
#define TM tm
40-
#endif
40+
#endif
4141

4242

4343
/* Declare public functions */

bson/time64_limits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Maximum and minimum inputs your system's respective time functions
33
can correctly handle. time64.h will use your system functions if
44
the input falls inside these ranges and corresponding USE_SYSTEM_*

doc/examples/authentication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ To authenticate using GSSAPI you must first install the python `kerberos`_ or
141141
using the following authentication methods::
142142

143143
$ kinit mongodbuser@EXAMPLE.COM
144-
mongodbuser@EXAMPLE.COM's Password:
144+
mongodbuser@EXAMPLE.COM's Password:
145145
$ klist
146146
Credentials cache: FILE:/tmp/krb5cc_1000
147147
Principal: mongodbuser@EXAMPLE.COM

doc/examples/bulk.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ the failure.
9999
... db.test.bulk_write(requests)
100100
... except BulkWriteError as bwe:
101101
... pprint(bwe.details)
102-
...
102+
...
103103
{'nInserted': 0,
104104
'nMatched': 1,
105105
'nModified': 1,
@@ -137,7 +137,7 @@ and fourth operations succeed.
137137
... db.test.bulk_write(requests, ordered=False)
138138
... except BulkWriteError as bwe:
139139
... pprint(bwe.details)
140-
...
140+
...
141141
{'nInserted': 0,
142142
'nMatched': 1,
143143
'nModified': 1,
@@ -170,7 +170,7 @@ after all operations are attempted, regardless of execution order.
170170
... coll.bulk_write([InsertOne({'a': i}) for i in range(4)])
171171
... except BulkWriteError as bwe:
172172
... pprint(bwe.details)
173-
...
173+
...
174174
{'nInserted': 4,
175175
'nMatched': 0,
176176
'nModified': 0,

doc/tools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Manga
8989
layer on top of PyMongo. The syntax for defining schema is inspired by the
9090
Django ORM, but Pymongo's query language is maintained. The source `is on
9191
github <http://github.com/wladston/manga>`_.
92-
92+
9393
MotorEngine
9494
`MotorEngine <https://motorengine.readthedocs.io/>`_ is a port of
9595
MongoEngine to Motor, for asynchronous access with Tornado.

0 commit comments

Comments
 (0)