Steve Kowalik
cca8e3a5b4
Remove some uses of atLeastPython3 ( #1191 )
...
There are a number of call sites that would behave differently depending
on Python 2 or 3. A fair amount of them are left over from Python 3.2 or
Python 2.6 were the current versions, and it was much harder to write
compatible code for both versions. Happily, that is now in the past, so
refactor some of them out.
2019-08-05 16:14:39 +10:00
Steve Kowalik
dc2f2ad8cb
Switch to using six ( #1189 )
...
With the Python 2.7 deadline fast approaching, modernize the codebase
making use of the modernize module to switch to using six, as well as
other upcoming features, such as absolute imports . Stop using 2to3
for Travis, yay!
2019-08-05 14:06:19 +10:00
Steve Kowalik
828b53b756
Silence more flake8 errors ( #1160 )
...
Make more whitespace changes to silence flake8 errors under the github
directory only.
2019-07-02 17:55:04 +08:00
Shubham Singh
b4d895eddd
Adding migration api wrapper ( #899 )
...
Closes #818
2018-12-21 12:01:01 +08:00
h.shi
1fa25670f7
Add highlight search to search_code function ( #925 )
...
* ✨ add highlight search to search_code function
* ✅ add highlighting search code tests
2018-10-10 16:38:47 +08:00
sfdye
365a0a24d3
Apply fix_headers script to update copyright info
2018-03-17 20:06:16 +08:00
sfdye
58e1ef9ccb
Fix copyright formatting
2018-03-13 22:30:47 +08:00
sfdye
020c136a40
Update doc link in copyright text
2018-03-13 22:07:38 +08:00
Sam Corbett
8ab9082cff
Encode GithubObject repr values in utf-8 when using Python2
2016-11-30 10:15:51 +00:00
Jakub Wilk
10a28e0654
Fix typo in a constant
2016-10-16 22:28:45 +02:00
Jannis Gebauer
78374b9d5e
sort params and make them work on py3
2016-09-08 10:46:06 +02:00
Jannis Gebauer
8571d87c77
adds a nicer __repr__
2016-09-08 10:25:48 +02:00
Peter Buckley
cb0cf0a680
update doc url everywhere ( #420 )
2016-07-12 16:38:02 -04:00
Andrew Scheller
959bc27f2d
documentation typos
2014-05-27 09:44:35 +01:00
Vincent Jacques
abca7a026e
pep8
...
This is strange, maybe Cygwin's version is stricter.
No time to investigate.
2014-05-04 12:54:05 -07:00
Vincent Jacques
c6671c6466
Finish .../stats/... ( #203 )
2013-11-17 10:16:59 -08:00
Vincent Jacques
d626f21484
Implement equality comparison of CompletableGithubObject ( #201 )
2013-11-10 16:28:52 -08:00
Vincent Jacques
5692c1ebb2
Acknowledge lack of test coverage in the old Download API
2013-11-10 15:57:08 -08:00
Vincent Jacques
072bf24277
Raise exception only when user *accesses* an attribute with a bad value ( #195 )
2013-09-12 11:45:29 +02:00
Vincent Jacques
2ee7aff8e6
Factorize
2013-09-12 10:16:57 +02:00
Vincent Jacques
597e123029
Factorize the creation of attributes (preparation for #195 )
2013-09-12 09:27:25 +02:00
Vincent Jacques
4a5009741a
Use ValuedAttribute and NotSet.value (preparation for #195 )
2013-09-12 00:40:27 +02:00
Vincent Jacques
f2feb81dae
Add default parameters to greatly reduce code redoundancy
2013-09-06 11:01:32 +02:00
Vincent Jacques
3fe9edf087
Implement object persistence
...
This follows my proposal for #193 .
Largely inspired by AKFish's work.
2013-09-04 23:28:44 +02:00
Vincent Jacques
020a3c9917
Move method update to CompletableGithubObject
2013-08-23 18:45:16 +02:00
Vincent Jacques
e084b51381
#193 : Fix test coverage
2013-08-23 14:51:34 +02:00
Vincent Jacques
64cf539c83
#193 : Add a param to Requester.requestXxx for request headers
2013-08-23 11:31:01 +02:00
Vincent Jacques
03d7fb012e
#193 : Add remarks
2013-08-23 11:15:17 +02:00
Vincent Jacques
bae0a37d18
#193 : Don't use a try-except for a usual execution flow in GithubObject.update
...
(and factorize assignment of headers in _storeAndUseAttributes,
as done for rawData)
2013-08-23 11:10:35 +02:00
Vincent Jacques
fb7325884e
Fix remarks on #189 to #193
2013-08-23 09:32:47 +02:00
Vincent Jacques
0f74e4389b
Review of #189 : pep8, copyrights, style, remarks
...
For remarks, run: git grep "#189 "
They are only my first thoughts while reviewing this pull request,
and should be reviewed themselves.
2013-08-22 12:12:38 +02:00
Vincent Jacques
1787765a61
Review of #189 : use dict.get
...
http://docs.python.org/2/library/stdtypes.html#dict.get
2013-08-22 11:41:15 +02:00
Vincent Jacques
cc1bcd5f2d
Merge branch 'develop' into topic/ConditionalRequest
...
Conflicts:
.gitignore
github/Requester.py
2013-08-22 11:01:51 +02:00
Vincent Jacques
5c475c7683
First review of #192 (pep8, headers... nothing important)
...
./manage.sh check
./manage.sh fix_headers
2013-08-22 10:12:38 +02:00
AKFish
1e9ec2df08
Add NotModifiedException class
2013-08-21 23:04:07 +08:00
AKFish
bd7abb5877
Add update() method
2013-08-21 23:01:40 +08:00
AKFish
b71329e560
Implement data persistence
2013-08-21 22:25:20 +08:00
AKFish
e06257d060
Enable debug in TestCase
2013-08-21 20:58:29 +08:00
AKFish
1d18ea75cc
Add debug / test mechanism
2013-08-21 19:25:05 +08:00
AKFish
912bec79d2
Update copyright information
2013-08-21 17:45:01 +08:00
AKFish
30d9d499a1
Clean up
2013-08-21 17:32:32 +08:00
AKFish
ca6189c3c9
Change CompletableGithubObject.__init__ without breaking build.
2013-08-21 14:49:20 +08:00
AKFish
a1b65636df
Clean up. NonCompletableGithubObject refactoring resolved.
2013-08-21 14:25:07 +08:00
AKFish
0bc138b490
Change NonCompletableGithubObject without breaking build.
2013-08-21 12:32:41 +08:00
AKFish
cfbe7fb0b0
Change GithubObject.__init__ without breaking build.
2013-08-21 11:21:15 +08:00
Vincent Jacques
06a3d87098
Change source file header format
2013-07-13 19:03:53 +02:00
Vincent Jacques
db5560bd65
Add a script to check copyrights with git log. And fix copyrights.
2013-03-29 16:54:15 +01:00
Vincent Jacques
b9d71fa787
Slightly improve coverage :-D
2013-03-28 21:05:19 +01:00
Vincent Jacques
a397fac6db
Fix doc for raw_data (issue #144 )
2013-03-21 21:56:51 +01:00
Vincent Jacques
fa43e95268
Refactor XxxGithubObject
2013-03-14 12:31:36 +01:00