diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tweepy/streaming.py b/tweepy/streaming.py index <HASH>..<HASH> 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -119,6 +119,7 @@ class Stream: if http_error_wait > http_error_wait_max: http_error_wait = http_error_wait_max ...
Handle ChunkedEncodingError during streaming
py
diff --git a/luigi/contrib/hdfs/__init__.py b/luigi/contrib/hdfs/__init__.py index <HASH>..<HASH> 100644 --- a/luigi/contrib/hdfs/__init__.py +++ b/luigi/contrib/hdfs/__init__.py @@ -23,6 +23,15 @@ You can configure what client by setting the "client" config under the "hdfs" se # Here follows a series of deprecated ...
hdfs.py refactoring: Re-export hdfs.config as well This will fix the test failures I saw in #<I>. This should have actually been amended into the commit in #<I> but that's merged already.
py
diff --git a/publisher/middleware.py b/publisher/middleware.py index <HASH>..<HASH> 100644 --- a/publisher/middleware.py +++ b/publisher/middleware.py @@ -15,7 +15,10 @@ class PublisherMiddleware(object): @staticmethod def process_response(request, response): - del PublisherMiddleware._draft_status[c...
handle KeyError exception in a middleware class handle KeyError exception in a middleware class, close #5
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -36,6 +36,7 @@ __docformat__ = "restructuredtext en" # ------------------------------------------------------------------------------ import os +import sys try: from setuptools import setup @@ -91,9 +92,12 @@ setup...
Added importlib and unittest2 requirements in setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -120,6 +120,15 @@ except ImportError: setup_params = {} declarative_setup_params = read_configuration('setup.cfg') +# Patch incorrectly decoded package_dir option +# ``egg_info`` demands native strings failing with unicode...
Extend setup.cfg shim to have str @ package_dir
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100755 --- a/doc/conf.py +++ b/doc/conf.py @@ -39,6 +39,7 @@ extensions = [ 'sphinx.ext.viewcode', 'sphinx.ext.githubpages', 'sphinx.ext.napoleon', + 'sphinx_markdown_tables', ] # Add any paths that contain templates here, relative to thi...
Add markdown table support for Read the Docs Hopefully resolves #<I>
py
diff --git a/safe/gis/generic_expressions.py b/safe/gis/generic_expressions.py index <HASH>..<HASH> 100644 --- a/safe/gis/generic_expressions.py +++ b/safe/gis/generic_expressions.py @@ -136,8 +136,13 @@ def inasafe_place_value_coefficient(number, feature, parent): enable_rounding=True, use_po...
round down number below a thousand (#<I>)
py
diff --git a/mordred/task_panels.py b/mordred/task_panels.py index <HASH>..<HASH> 100644 --- a/mordred/task_panels.py +++ b/mordred/task_panels.py @@ -359,7 +359,11 @@ class TaskPanelsMenu(Task): if self.conf['general']['kibana'] == '5': menu_entries[entry['name']] = {} for su...
[task_panels] If a dashboard file does not exists catch the exception and log it as an error.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -99,6 +99,7 @@ setup(name='allennlp', 'awscli>=1.11.91', 'flask==0.12.1', 'flask-cors==3.0.3', + 'gevent==1.2.2', 'psycopg2', 'argparse', 'requests>=2....
add gevent to setup.py (#<I>)
py
diff --git a/bin/qds.py b/bin/qds.py index <HASH>..<HASH> 100755 --- a/bin/qds.py +++ b/bin/qds.py @@ -325,13 +325,6 @@ def cluster_reassign_label_action(clusterclass, args): return 0 -def cluster_check_action(clusterclass, args): - name = args.pop(0) if (len(args) >= 1) else None - o = clusterclass.find...
Remove unused method leftover after fixing #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,11 +21,11 @@ config = { 'download_url': 'https://github.com/bjmorgan/lattice_mc/tarball/0.9.1', 'author_email': 'b.j.morgan@bath.ac.uk', 'version': '1.0.0', - 'install_requires': ['numpy, matplotlib, pand...
Fixed install_requires error in setup.py
py
diff --git a/elasticsearch/client/utils.py b/elasticsearch/client/utils.py index <HASH>..<HASH> 100644 --- a/elasticsearch/client/utils.py +++ b/elasticsearch/client/utils.py @@ -32,6 +32,8 @@ def _escape_param(value): value = ','.join(value) elif isinstance(value, (date, datetime)): value = valu...
Make sure we encode boolean query params properly
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,9 +6,9 @@ import subprocess import sys try: - from setuptools import find_packages, setup, Command + from setuptools import setup, Command except ImportError: - from distutils.core import find_packages, setup,...
Turns out there's no `find_packages()` in distutils
py
diff --git a/crowd.py b/crowd.py index <HASH>..<HASH> 100644 --- a/crowd.py +++ b/crowd.py @@ -234,7 +234,8 @@ class CrowdServer(object): def get_groups(self, username): - url = self.rest_url + "/user/group/direct?username={0}".format(username) + url = self.rest_url + "/user/group/direct?%s" % ur...
get_groups url constructed similarly to other methods
py
diff --git a/elasticsearch/connection/http_urllib3.py b/elasticsearch/connection/http_urllib3.py index <HASH>..<HASH> 100644 --- a/elasticsearch/connection/http_urllib3.py +++ b/elasticsearch/connection/http_urllib3.py @@ -50,13 +50,17 @@ class Urllib3HttpConnection(Connection): ssl_assert_fingerprint=None...
update headers in lowercase to allow overriding of auth headers
py
diff --git a/brozzler/browser.py b/brozzler/browser.py index <HASH>..<HASH> 100644 --- a/brozzler/browser.py +++ b/brozzler/browser.py @@ -1,7 +1,7 @@ ''' brozzler/browser.py - manages the browsers for brozzler -Copyright (C) 2014-2018 Internet Archive +Copyright (C) 2014-2020 Internet Archive Licensed under the...
try SPN2 downloadThroughput limit
py
diff --git a/lib/reda/configs/configManager.py b/lib/reda/configs/configManager.py index <HASH>..<HASH> 100644 --- a/lib/reda/configs/configManager.py +++ b/lib/reda/configs/configManager.py @@ -819,17 +819,16 @@ class ConfigManager(object): Examples -------- - >>> import numpy as np - ...
to prevent issues with the pybert module missing during the travis test, move the example from a doctest to a normal code block.
py
diff --git a/pricedb/app.py b/pricedb/app.py index <HASH>..<HASH> 100644 --- a/pricedb/app.py +++ b/pricedb/app.py @@ -297,7 +297,7 @@ class PriceDbApplication: if not symbol: return None - self.logger.info(f"Downloading {symbol}... ") + #self.logger.info(f"Downloading {symbol}... ...
removing the "downloading..." message from output
py
diff --git a/peeweedbevolve.py b/peeweedbevolve.py index <HASH>..<HASH> 100644 --- a/peeweedbevolve.py +++ b/peeweedbevolve.py @@ -397,11 +397,7 @@ def drop_column(db, migrator, ntn, column_name): def change_column_type(db, migrator, table_name, column_name, field): qc = db.compiler() - print('field', field) -...
didn't mean to commit debug
py
diff --git a/khard/carddav_object.py b/khard/carddav_object.py index <HASH>..<HASH> 100644 --- a/khard/carddav_object.py +++ b/khard/carddav_object.py @@ -352,15 +352,21 @@ class CarddavObject: phone_dict = {} for child in self.vcard.getChildren(): if child.name == "TEL": + ...
Fix for issue #<I>: vcard attribute tel with missing uri scheme "tel:"
py
diff --git a/goldman/queryparams/filter.py b/goldman/queryparams/filter.py index <HASH>..<HASH> 100644 --- a/goldman/queryparams/filter.py +++ b/goldman/queryparams/filter.py @@ -312,10 +312,10 @@ def init(req, model): }) except ValueError: param = Filter(field, oper, val) - el...
filter qp wasn't appending matches to the return array in init
py
diff --git a/future/tests/test_standard_library_renames.py b/future/tests/test_standard_library_renames.py index <HASH>..<HASH> 100644 --- a/future/tests/test_standard_library_renames.py +++ b/future/tests/test_standard_library_renames.py @@ -24,7 +24,7 @@ class TestStandardLibraryRenames(unittest.TestCase): def t...
Don't test StringIO object for the obsolete .next() method on Py3
py
diff --git a/django_extensions/management/commands/shell_plus.py b/django_extensions/management/commands/shell_plus.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/shell_plus.py +++ b/django_extensions/management/commands/shell_plus.py @@ -270,7 +270,7 @@ Please read the documentation careful...
ticket #<I> change to show only with verbosity 2 or higher
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def read(fname): setup( name="Pebble", - version="2.4.1", + version="2.4.2", author="Matteo Cafasso", author_email="noxdafox@gmail.com", description=("Threading and multiprocessing e...
release <I>: full Windows support
py
diff --git a/macroeco/main/main.py b/macroeco/main/main.py index <HASH>..<HASH> 100644 --- a/macroeco/main/main.py +++ b/macroeco/main/main.py @@ -187,7 +187,9 @@ def _emp_extra_options(options): raise IOError, ("Path to metadata file %s is invalid." % metadata_path) - options['pa...
Fix bug in main that ignored subset
py
diff --git a/meshio/gmsh_io.py b/meshio/gmsh_io.py index <HASH>..<HASH> 100644 --- a/meshio/gmsh_io.py +++ b/meshio/gmsh_io.py @@ -273,7 +273,8 @@ def write( for key in cells: if cells[key].dtype != numpy.int32: logging.warning( - 'Binary Gmsh needs 32-bit integ...
better warning in gmsh
py
diff --git a/facebook.py b/facebook.py index <HASH>..<HASH> 100755 --- a/facebook.py +++ b/facebook.py @@ -504,16 +504,19 @@ def parse_signed_request(signed_request, app_secret): return data -def auth_url(app_id, canvas_url, perms=None, state=None): +def auth_url(app_id, canvas_url, perms=None, state=None, res...
response_type and display added to auth_url
py
diff --git a/mechanicalsoup/stateful_browser.py b/mechanicalsoup/stateful_browser.py index <HASH>..<HASH> 100644 --- a/mechanicalsoup/stateful_browser.py +++ b/mechanicalsoup/stateful_browser.py @@ -130,7 +130,7 @@ class StatefulBrowser(Browser): perform any network access. If ``url`` is set, pretend it is the...
open_fake_page: let soup_config default to the browser's version Using self.soup_config is probably always the right thing to do. Since we historically supported providing a soup_config argmuent to open_fake_page, keep this possibility in case someone's using it.
py
diff --git a/iexfinance/stats.py b/iexfinance/stats.py index <HASH>..<HASH> 100644 --- a/iexfinance/stats.py +++ b/iexfinance/stats.py @@ -128,7 +128,6 @@ class DailySummaryReader(Stats): https://iextrading.com/developer/docs/#historical-daily """ - _LAST = True def __init__(self, start=None,...
get_stats_daily now passes incremented dates in requests params during fetch
py
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/event_based.py +++ b/openquake/calculators/event_based.py @@ -83,6 +83,8 @@ def build_ruptures(srcs, srcfilter, param, monitor): mon = monitor('making contexts', measurem...
Small fix [skip CI]
py
diff --git a/patroni/postgresql.py b/patroni/postgresql.py index <HASH>..<HASH> 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -79,7 +79,7 @@ class Postgresql(object): self._state = 'stopped' self._state_lock = Lock() - self._role = 'replica' + self._role = 'replica'...
Try to guess the postgres role before it is started by examinging the recovery.conf.
py
diff --git a/pingu/corpus/preprocessing/processor.py b/pingu/corpus/preprocessing/processor.py index <HASH>..<HASH> 100644 --- a/pingu/corpus/preprocessing/processor.py +++ b/pingu/corpus/preprocessing/processor.py @@ -61,11 +61,12 @@ class Processor(metaclass=abc.ABCMeta): for utterance in corpus.utterances.v...
Only check sampling-rate for preprocessing when no target sampling-rate is given
py
diff --git a/salt/states/boto_iot.py b/salt/states/boto_iot.py index <HASH>..<HASH> 100644 --- a/salt/states/boto_iot.py +++ b/salt/states/boto_iot.py @@ -504,7 +504,8 @@ def topic_rule_present(name, ruleName, sql, actions, description='', actions = json.loads(actions) need_update = False - r = cmp(_...
cmp() function is deprecated in Python 3 - use an alternate comparison
py
diff --git a/src/feat/common/defer.py b/src/feat/common/defer.py index <HASH>..<HASH> 100644 --- a/src/feat/common/defer.py +++ b/src/feat/common/defer.py @@ -111,7 +111,7 @@ def print_trace(_param, _template="", *args): def debug(_param, _template="", *args): - log.logex("defer", LogLevel.debug, _template, arg...
Changes trace, debug and print_trace to use logging trace logging category.
py
diff --git a/riak/riak_object.py b/riak/riak_object.py index <HASH>..<HASH> 100644 --- a/riak/riak_object.py +++ b/riak/riak_object.py @@ -74,7 +74,7 @@ class RiakObject(object): else: return False - def __nq__(self, other): + def __ne__(self, other): if isinstance(other, self.__c...
Fixed typo for __ne__ We could probably also refactor `__ne__` to call `__eq__`
py
diff --git a/traffic/core/traffic.py b/traffic/core/traffic.py index <HASH>..<HASH> 100644 --- a/traffic/core/traffic.py +++ b/traffic/core/traffic.py @@ -144,6 +144,12 @@ class Traffic(DataFrameMixin, GeographyMixin): ) def plot(self, ax, **kwargs): + params = {} + if sum(1 for _ in zip(r...
switch to gray when plotting more than 7 flights
py
diff --git a/tests/test_fileio.py b/tests/test_fileio.py index <HASH>..<HASH> 100644 --- a/tests/test_fileio.py +++ b/tests/test_fileio.py @@ -8,7 +8,8 @@ from collections import namedtuple from datetime import date, datetime from tempfile import NamedTemporaryFile -from foil.fileio import DelimitedReader, Delimite...
Specification for concatenate streams.
py
diff --git a/web3/main.py b/web3/main.py index <HASH>..<HASH> 100644 --- a/web3/main.py +++ b/web3/main.py @@ -90,9 +90,11 @@ class Web3(object): # Encoding and Decoding toHex = staticmethod(to_hex) - toAscii = staticmethod(decode_hex) + toBytes = staticmethod(decode_hex) + toAscii = toBytes t...
toBytes is more semantically correct than toAscii You get a `bytes` object out, which will often be invalid ascii Kept toAscii for backwards compatibility
py
diff --git a/aiortc/rtcrtpreceiver.py b/aiortc/rtcrtpreceiver.py index <HASH>..<HASH> 100644 --- a/aiortc/rtcrtpreceiver.py +++ b/aiortc/rtcrtpreceiver.py @@ -152,7 +152,7 @@ class RTCRtpReceiver: # RTCP self._ssrc = None self.__lsr = None - self.__lsr_stamp = None + self.__lsr_...
[rtp] fix missing await for coroutine
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,9 +20,9 @@ def runSetup(): Calls setup(). This function exists so the setup() invocation preceded more internal functionality. The `version` module is imported dynamically by importVersion() below. """ - ...
Update boto, boto3, and futures
py
diff --git a/src/mopgui/test/test_mopgui/test_io/test_writer.py b/src/mopgui/test/test_mopgui/test_io/test_writer.py index <HASH>..<HASH> 100644 --- a/src/mopgui/test/test_mopgui/test_io/test_writer.py +++ b/src/mopgui/test/test_mopgui/test_io/test_writer.py @@ -41,7 +41,26 @@ class MPCWriterTest(unittest.TestCase): ...
Test case for numeric inputs (instead of string representation) for MPCWriter.
py
diff --git a/example/idp2/idp.py b/example/idp2/idp.py index <HASH>..<HASH> 100755 --- a/example/idp2/idp.py +++ b/example/idp2/idp.py @@ -297,7 +297,8 @@ class SSO(Service): return resp_args, _resp - def do(self, query, binding_in, relay_state="", encrypt_cert=None): + def do(self, query, binding_in...
Less prone to keel over because of unexpected keyword arguments. Proposed by serpulga.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -67,7 +67,7 @@ extensions = [ ] # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = [] # The suffix(es) of source filenames. # You...
Remove _static and _templates
py
diff --git a/cloudvolume/datasource/precomputed/skeleton.py b/cloudvolume/datasource/precomputed/skeleton.py index <HASH>..<HASH> 100644 --- a/cloudvolume/datasource/precomputed/skeleton.py +++ b/cloudvolume/datasource/precomputed/skeleton.py @@ -778,11 +778,11 @@ class PrecomputedSkeleton(object): ys = self.verti...
fix: switch skeleton heatmap to rainbow The hsv map is red at both ends. Also chose this map because it seems fairly resistant to color blindness.
py
diff --git a/bika/lims/content/instrument.py b/bika/lims/content/instrument.py index <HASH>..<HASH> 100644 --- a/bika/lims/content/instrument.py +++ b/bika/lims/content/instrument.py @@ -25,6 +25,7 @@ from zope.interface import implements from datetime import date from DateTime import DateTime from bika.lims.config ...
Now we are avoiding setting an interface that doesn't exist in system.
py
diff --git a/scot/eegtopo/topoplot.py b/scot/eegtopo/topoplot.py index <HASH>..<HASH> 100644 --- a/scot/eegtopo/topoplot.py +++ b/scot/eegtopo/topoplot.py @@ -146,12 +146,12 @@ class Topoplot(object): extent=(offset[0]-self.interprange, offset[0]+self.interprange, ...
Added electrode formatting options to topo plots
py
diff --git a/docxtpl/__init__.py b/docxtpl/__init__.py index <HASH>..<HASH> 100644 --- a/docxtpl/__init__.py +++ b/docxtpl/__init__.py @@ -391,7 +391,7 @@ class RichText(object): bold=False, italic=False, underline=False, - ...
Fixed Typo Added comma after 'strike'
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -44,6 +44,8 @@ setup( install_requires = [ 'lxml', + 'pytz', + 'requests', ], setup_requires = [
added missing pytz and requests from setup.py dependencies
py
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -51,11 +51,11 @@ DEP_PIP_PAIRS = [ # Extras in url { "discord.py": { - "file": "https://github.com/Rapptz/discord.py...
Update test url for discord link in tests - Point at ref that actually exists
py
diff --git a/salt/modules/file.py b/salt/modules/file.py index <HASH>..<HASH> 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -1645,12 +1645,12 @@ def _mkstemp_copy(path, def _starts_till(src, probe, strip_comments=True): ''' - Returns True if src and probe at least begins till some point. + ...
Fix docs in the funtions
py
diff --git a/tinymongo/tinymongo.py b/tinymongo/tinymongo.py index <HASH>..<HASH> 100644 --- a/tinymongo/tinymongo.py +++ b/tinymongo/tinymongo.py @@ -87,8 +87,6 @@ class TinyMongoCollection(object): else: allcond=allcond & (theop(self.query[akey],avalue)) cnt+=1 - if n...
We no longer need lastcond anymore because we are no longer reusing queries.
py
diff --git a/test_requests_kerberos.py b/test_requests_kerberos.py index <HASH>..<HASH> 100644 --- a/test_requests_kerberos.py +++ b/test_requests_kerberos.py @@ -653,8 +653,7 @@ class KerberosTestCase(unittest.TestCase): auth = requests_kerberos.HTTPKerberosAuth(principal="user@REALM") a...
No context manager for assertRaises on py<I>...
py
diff --git a/deluge_client/client.py b/deluge_client/client.py index <HASH>..<HASH> 100644 --- a/deluge_client/client.py +++ b/deluge_client/client.py @@ -265,11 +265,11 @@ class DelugeRPCClient(object): def __enter__(self): """Connect to client while using with statement.""" self.connect() + ...
Fix context manager - return the client upon enter The magic method that should return self is the __enter__ one and not the __exit__ one.
py
diff --git a/etrago/cluster/disaggregation.py b/etrago/cluster/disaggregation.py index <HASH>..<HASH> 100644 --- a/etrago/cluster/disaggregation.py +++ b/etrago/cluster/disaggregation.py @@ -313,8 +313,9 @@ class UniformDisaggregation(Disaggregation): [self.clustered_network.generators.bus == clust...
Fix assertion message for clustered generators
py
diff --git a/gcloud/datastore/test_query.py b/gcloud/datastore/test_query.py index <HASH>..<HASH> 100644 --- a/gcloud/datastore/test_query.py +++ b/gcloud/datastore/test_query.py @@ -560,7 +560,8 @@ class Test__pb_from_query(unittest2.TestCase): self.assertEqual(list(pb.group_by), []) self.assertEqual...
Updating to new default for CompositeFilter.Operator.
py
diff --git a/examples/repost_best_photos_from_users.py b/examples/repost_best_photos_from_users.py index <HASH>..<HASH> 100644 --- a/examples/repost_best_photos_from_users.py +++ b/examples/repost_best_photos_from_users.py @@ -77,12 +77,15 @@ def repost_photo(bot, new_media_id, path=POSTED_MEDIAS): if not photo_pa...
Update repost_best_photos_from_users.py
py
diff --git a/topydo/commands/EditCommand.py b/topydo/commands/EditCommand.py index <HASH>..<HASH> 100644 --- a/topydo/commands/EditCommand.py +++ b/topydo/commands/EditCommand.py @@ -55,7 +55,7 @@ class EditCommand(MultiCommand): self.multi_mode = False def _todos_to_temp(self): - f = tempfil...
End temporary file names with .todo.txt That way the filetype detection of the todo.txt vim plugin is triggered and shows the appropriate syntax highlighting. <URL>
py
diff --git a/atx/ext/chromedriver.py b/atx/ext/chromedriver.py index <HASH>..<HASH> 100644 --- a/atx/ext/chromedriver.py +++ b/atx/ext/chromedriver.py @@ -27,19 +27,27 @@ class ChromeDriver(object): except subprocess.TimeoutExpired: return True - def driver(self): + def driver(self, at...
add attach and activity params to chromedriver
py
diff --git a/cnxarchive/views.py b/cnxarchive/views.py index <HASH>..<HASH> 100644 --- a/cnxarchive/views.py +++ b/cnxarchive/views.py @@ -398,7 +398,7 @@ def sitemap(environ, start_response): """ settings = get_settings() xml = Sitemap() - hostname = environ['SERVER_NAME'] + hostname = environ['HT...
get correct hostname from wsgi environment
py
diff --git a/flask_oauthlib/client.py b/flask_oauthlib/client.py index <HASH>..<HASH> 100644 --- a/flask_oauthlib/client.py +++ b/flask_oauthlib/client.py @@ -557,7 +557,8 @@ class OAuthRemoteApp(object): ) resp, content = self.http_request( - uri, headers, to_bytes(data, self.encoding) +...
Fix issue where a different method was used for signing OauthV1 requests than the method used to request them.
py
diff --git a/discord/client.py b/discord/client.py index <HASH>..<HASH> 100644 --- a/discord/client.py +++ b/discord/client.py @@ -839,7 +839,12 @@ class Client: def fetch_guilds(self, *, limit=100, before=None, after=None): """|coro| - Retreives an :class:`AsyncIterator` that enables receiving y...
Add notes stating what Guild.fetch_guild and Guild.fetch_guilds returns Also fixed two typos.
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -28,7 +28,10 @@ _SRC_DIR = os.path.join(_ROOT_DIR, 'ca') sys.path.insert(0, _SRC_DIR) os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ca.settings') + import django +from django...
fix building of sphinx docs without localsettings
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -2042,10 +2042,14 @@ def _hw_data(osdata): for key, fw_file in sysfs_firmware_info.items(): contents_file = os.path.join('/sys/class/dmi/id', fw_file) ...
Do not fail to init grains for non-root user.
py
diff --git a/kmip/core/messages/contents.py b/kmip/core/messages/contents.py index <HASH>..<HASH> 100644 --- a/kmip/core/messages/contents.py +++ b/kmip/core/messages/contents.py @@ -103,10 +103,9 @@ class ProtocolVersion(Struct): def __eq__(self, other): if isinstance(other, ProtocolVersion): ...
Fixing line break style error This change fixes a minor style error where a line break was used before a binary operator in an if-statement.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,6 @@ setup( version = whratio.__version__, packages = find_packages(), scripts = ["whratio.py"], - use_2to3 = True, author = whratio.__author__, author_email = whratio.__email__,
Do not use 2to3 (script is already python 3)
py
diff --git a/safe/impact_functions/earthquake/itb_earthquake_fatality_model/test/test_itb_earthquake_fatality_model.py b/safe/impact_functions/earthquake/itb_earthquake_fatality_model/test/test_itb_earthquake_fatality_model.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/earthquake/itb_earthquake_fatality_mo...
re fix test code to reflect the change in the zero fatality
py
diff --git a/spacy/cli/link.py b/spacy/cli/link.py index <HASH>..<HASH> 100644 --- a/spacy/cli/link.py +++ b/spacy/cli/link.py @@ -34,11 +34,18 @@ def link(cmd, origin, link_name, force=False, model_path=None): "located here:", path2str(spacy_loc), exits=1, title="Can't find the spaCy da...
Fix overwriting of existing symlinks Check for is_symlink() to also overwrite invalid and outdated symlinks. Also show better error message if link path exists but is not symlink (i.e. file or directory).
py
diff --git a/nhe/const.py b/nhe/const.py index <HASH>..<HASH> 100644 --- a/nhe/const.py +++ b/nhe/const.py @@ -75,7 +75,6 @@ class StdDev(ConstantContainer): TOTAL = 'Total standard deviation' INTER_EVENT = 'Inter event standard deviation' INTRA_EVENT = 'Intra event standard deviation' - NONE = 'None ...
const: removed StdDev type "NONE"
py
diff --git a/jira/client.py b/jira/client.py index <HASH>..<HASH> 100644 --- a/jira/client.py +++ b/jira/client.py @@ -407,19 +407,22 @@ class JIRA(object): # Groups # non-resource - def groups(self, query=None, exclude=None): + def groups(self, query=None, exclude=None, maxResults=None): """ ...
add maxResults option to groups() default is only <I> (or whatever is set in with the property jira.ajax.autocomplete.limit
py
diff --git a/curtsies/fmtstr.py b/curtsies/fmtstr.py index <HASH>..<HASH> 100644 --- a/curtsies/fmtstr.py +++ b/curtsies/fmtstr.py @@ -60,14 +60,12 @@ class BaseFmtStr(object): # TODO: rename? e.g. FmtChunk self._s = string self._atts = FrozenDict(atts) - def _get_atts(self): - retur...
define fields in parallel style, in the same order as in init
py
diff --git a/pwkit/environments/casa/util.py b/pwkit/environments/casa/util.py index <HASH>..<HASH> 100644 --- a/pwkit/environments/casa/util.py +++ b/pwkit/environments/casa/util.py @@ -73,10 +73,23 @@ def sanitize_unicode (item): def datadir (*subdirs): import os.path + data = None if 'CASAPATH' in ...
pwkit/environments/casa/util.py: improve datadir() for Conda distrib
py
diff --git a/ipyrad/analysis/twiist.py b/ipyrad/analysis/twiist.py index <HASH>..<HASH> 100644 --- a/ipyrad/analysis/twiist.py +++ b/ipyrad/analysis/twiist.py @@ -82,8 +82,8 @@ class Twiist(): for idx, loc in enumerate(liter): lines = loc.split("\n") - snpline = loc[-1] - l...
parsing lines for locidc, chiidx, and pos
py
diff --git a/nodeconductor/core/log.py b/nodeconductor/core/log.py index <HASH>..<HASH> 100644 --- a/nodeconductor/core/log.py +++ b/nodeconductor/core/log.py @@ -87,7 +87,7 @@ class EventFormatter(logging.Formatter): # instance instance = self.get_related('instance', record) - self.add_relat...
Reword event instance attribute field for consistency NC-<I>
py
diff --git a/tests/test_ncbi_entrez_annotations.py b/tests/test_ncbi_entrez_annotations.py index <HASH>..<HASH> 100755 --- a/tests/test_ncbi_entrez_annotations.py +++ b/tests/test_ncbi_entrez_annotations.py @@ -9,8 +9,8 @@ __author__ = "DV Klopfenstein" import sys from goatools.associations import get_assoc_ncbi_taxi...
Now accessing data from goatools package.
py
diff --git a/mysensors/mysensors.py b/mysensors/mysensors.py index <HASH>..<HASH> 100644 --- a/mysensors/mysensors.py +++ b/mysensors/mysensors.py @@ -207,10 +207,10 @@ class SerialGateway(Gateway, threading.Thread): continue try: msg = line.decode('utf-8') + ...
Fix ValueError issue when decoding a message. This seems to happen occasionally when starting/stopping the serial thread due to partial messages in the buffer.
py
diff --git a/pw/store.py b/pw/store.py index <HASH>..<HASH> 100644 --- a/pw/store.py +++ b/pw/store.py @@ -18,8 +18,9 @@ class Store: def __init__(self, path: str, entries: Iterable[Entry]) -> None: # normalize keys - self.entries = [e._replace(key=_normalized_key(e.key)) # type: ignore - ...
Remove two mypy ignore hints.
py
diff --git a/test/test_parse_args.py b/test/test_parse_args.py index <HASH>..<HASH> 100644 --- a/test/test_parse_args.py +++ b/test/test_parse_args.py @@ -12,7 +12,7 @@ def test_normal(): Normal arguments. """ argv = [] - args = parse_args(argv) + parse_args(argv) @raises(ValueError) @@ -21,4 ...
Improve the PyLint score.
py
diff --git a/parsl/tests/test_scaling/test_scale_down.py b/parsl/tests/test_scaling/test_scale_down.py index <HASH>..<HASH> 100644 --- a/parsl/tests/test_scaling/test_scale_down.py +++ b/parsl/tests/test_scaling/test_scale_down.py @@ -43,7 +43,9 @@ def sleeper(t): return random.randint(0, 10000) -@pytest.mark....
Re-enabled scale down test (#<I>) This was disabled due to frequent failure (see issue #<I>) but this test has been re-enabled in the `desc` branch for a while and has not caused trouble, so this commit should re-enabled it in master. Issue #<I> also notes the utility of this test in discovering scaling-in break...
py
diff --git a/elasticsearch/helpers/__init__.py b/elasticsearch/helpers/__init__.py index <HASH>..<HASH> 100644 --- a/elasticsearch/helpers/__init__.py +++ b/elasticsearch/helpers/__init__.py @@ -168,7 +168,11 @@ def bulk(client, actions, stats_only=False, **kwargs): a more human friendly interface - it consumes an...
Be more explicit with stats_only behavior
py
diff --git a/isso/views/comment.py b/isso/views/comment.py index <HASH>..<HASH> 100644 --- a/isso/views/comment.py +++ b/isso/views/comment.py @@ -60,6 +60,9 @@ def new(app, environ, request, uri): if "id" in data and not isinstance(data["id"], int): raise BadRequest("parent id must be an integer") + ...
limit email length to <I> to avoid hash-DDoS
py
diff --git a/MicroTokenizer/__init__.py b/MicroTokenizer/__init__.py index <HASH>..<HASH> 100644 --- a/MicroTokenizer/__init__.py +++ b/MicroTokenizer/__init__.py @@ -16,7 +16,7 @@ default_dict_file = os.path.join(current_dir, 'dictionary', 'dict.txt') def read_dict(dict_file): dict_data = {} - with open(dic...
Fix file read encoding in Windows which not default to utf8, GBK with Chinese language
py
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/catalog_const.py b/datadog_checks_dev/datadog_checks/dev/tooling/catalog_const.py index <HASH>..<HASH> 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/catalog_const.py +++ b/datadog_checks_dev/datadog_checks/dev/tooling/catalog_const.py @@ -51,6 +51,...
Add exception for IBM i logs collection (#<I>)
py
diff --git a/test/test_resource.py b/test/test_resource.py index <HASH>..<HASH> 100644 --- a/test/test_resource.py +++ b/test/test_resource.py @@ -38,14 +38,12 @@ class TestResourceRuntime(Rig): def custom(self): return "custom" - class other(object): - def __init__(self, context=None, container=None, rec...
Don't depend on object dispatch in resource dispatch tests.
py
diff --git a/gdown/__init__.py b/gdown/__init__.py index <HASH>..<HASH> 100644 --- a/gdown/__init__.py +++ b/gdown/__init__.py @@ -2,6 +2,7 @@ import pkg_resources +from .download_folder import download_folder from .cached_download import cached_download from .cached_download import md5sum from .download import...
Add initial support for folder downloads in __init__.py
py
diff --git a/AWSScout2/services/ec2.py b/AWSScout2/services/ec2.py index <HASH>..<HASH> 100644 --- a/AWSScout2/services/ec2.py +++ b/AWSScout2/services/ec2.py @@ -131,7 +131,7 @@ class EC2RegionConfig(RegionConfig): instance['reservation_id'] = reservation['ReservationId'] instance['id'] = i['...
Primary eni info no longer needed as all ENIs are stored now
py
diff --git a/tests/unit_project/test_polls/test_quizes.py b/tests/unit_project/test_polls/test_quizes.py index <HASH>..<HASH> 100644 --- a/tests/unit_project/test_polls/test_quizes.py +++ b/tests/unit_project/test_polls/test_quizes.py @@ -90,5 +90,7 @@ class TestWizard(QuizTestCase): self.assert_equals(200, ...
Added a test that done() in QuizWizard does increment the Result's count
py
diff --git a/odl/diagnostics/examples.py b/odl/diagnostics/examples.py index <HASH>..<HASH> 100644 --- a/odl/diagnostics/examples.py +++ b/odl/diagnostics/examples.py @@ -81,6 +81,11 @@ def vector_examples(space): # All spaces should yield the zero element yield ('Zero', space.zero()) + try: + yie...
ENH: add one as vector_examples to all spaces
py
diff --git a/soco/__init__.py b/soco/__init__.py index <HASH>..<HASH> 100644 --- a/soco/__init__.py +++ b/soco/__init__.py @@ -19,9 +19,9 @@ from .exceptions import SoCoException, UnknownSoCoException # Will be parsed by setup.py to determine package metadata __author__ = "The SoCo-Team <python-soco@googlegroups.co...
Set __version__ to <I>-dev
py
diff --git a/hex_utils/hasc.py b/hex_utils/hasc.py index <HASH>..<HASH> 100644 --- a/hex_utils/hasc.py +++ b/hex_utils/hasc.py @@ -170,7 +170,7 @@ class HASC (Grid): (x - self._side / 2, y + self._hexPerp ), (x - self._side, y ) ...
Fixed geometry order in saveAsGeoJSON()
py
diff --git a/km3pipe/io/daq.py b/km3pipe/io/daq.py index <HASH>..<HASH> 100644 --- a/km3pipe/io/daq.py +++ b/km3pipe/io/daq.py @@ -363,8 +363,10 @@ class DAQProcessor(Module): h5loc='reco', split_h5=True, ...
Fixed broken py2 pipeline by passing the arguments in a single list
py
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -51,18 +51,9 @@ def test_env(tmpdir, temp_user): class TestDevelopTest: - - def setup_method(self, method): - if ha...
Replace silent test acceptance with a proper skip check
py
diff --git a/hamlpy/hamlpy_watcher.py b/hamlpy/hamlpy_watcher.py index <HASH>..<HASH> 100644 --- a/hamlpy/hamlpy_watcher.py +++ b/hamlpy/hamlpy_watcher.py @@ -49,7 +49,8 @@ def _watch_folder(folder, destination): if necessary.""" for dirpath, dirnames, filenames in os.walk(folder): for filename in fi...
Fixes #<I>: hamlpy_watcher.py should ignore files starting with '.#'
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ extras_require['dev'] = ( ) setup( - name='eth-pm', + name='ethpm', # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility. version='0.1.0-alpha.21', descri...
Update eth-tester dependency to match web3
py
diff --git a/asks/response_objects.py b/asks/response_objects.py index <HASH>..<HASH> 100644 --- a/asks/response_objects.py +++ b/asks/response_objects.py @@ -147,7 +147,7 @@ class StreamBody: event = self.h11_connection.next_event() if event is h11.NEED_DATA: - data = await t...
fixed a missed self. on attr
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ setup( author_email='malev@somedev.ru', url='https://github.com/aamalev/aiohttp_apiset/', license='Apache 2', - packages=find_packages(include=('aiohttp_apiset*',)), + packages=[i for i in f...
find_packages without kwarg include
py
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index <HASH>..<HASH> 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -73,6 +73,17 @@ class ExportedModelTest(unittest.TestCase): else: self.skipTest("The model for the table Test__c not exported.") + def test_master_detail...
Added test for master-detail relationship
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -86,8 +86,7 @@ with open("README.md", "r") as fh: kwargs = {} -# If coreir is not present in the path, compile it from source -if not shutil.which("coreir"): +if False: kwargs["ext_modules"] = [CoreIRExtension('corei...
Don't build coreir from source
py
diff --git a/push_notifications/admin.py b/push_notifications/admin.py index <HASH>..<HASH> 100644 --- a/push_notifications/admin.py +++ b/push_notifications/admin.py @@ -3,9 +3,14 @@ from django.utils.translation import ugettext_lazy as _ from .models import APNSDevice, GCMDevice, get_expired_tokens +def _user__u...
Get username field dynamically in the admin Fixes #<I>
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,13 +15,13 @@ import sys, os on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if not on_rtd: import sphinx_bootstrap_theme -from version import get_version # If extensions (or modules to docu...
See if we can tweak the path for RTD
py
diff --git a/SoftLayer/CLI/environment.py b/SoftLayer/CLI/environment.py index <HASH>..<HASH> 100644 --- a/SoftLayer/CLI/environment.py +++ b/SoftLayer/CLI/environment.py @@ -59,7 +59,6 @@ class Environment(object): self.out(self.fmt(output), newline=newline) except UnicodeEncodeError: ...
removed exception message in environment.fout when a UnicodeEncodeError was encountered
py