diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/atlassian/stash.py b/atlassian/stash.py index <HASH>..<HASH> 100644 --- a/atlassian/stash.py +++ b/atlassian/stash.py @@ -95,3 +95,13 @@ class Stash(AtlassianRestAPI): ref_to=ref_to, limit=limit) return self.get(url)['values'] + + def get_content_of_file(self, project,...
added get_content_of_file to get raw content of file on master branch
py
diff --git a/pymunin/__init__.py b/pymunin/__init__.py index <HASH>..<HASH> 100644 --- a/pymunin/__init__.py +++ b/pymunin/__init__.py @@ -16,7 +16,7 @@ __copyright__ = "Copyright 2011, Ali Onur Uyar" __credits__ = ["Samuel Stauffer (https://github.com/samuel)", "Mark Lavin (https://github.com/mlavin)"...
Fix trivial error in framework. Thanks to Philippe LUC for reporting this problem.
py
diff --git a/searx/autocomplete.py b/searx/autocomplete.py index <HASH>..<HASH> 100644 --- a/searx/autocomplete.py +++ b/searx/autocomplete.py @@ -21,6 +21,16 @@ def dbpedia(query): return results +def duckduckgo(query): + # wikipedia autocompleter + url = 'https://ac.duckduckgo.com/ac/?{0}&type=list' + ...
[enh] duckduckgo autocomplete added
py
diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py index <HASH>..<HASH> 100644 --- a/tests/python/unittest/test_operator.py +++ b/tests/python/unittest/test_operator.py @@ -5746,7 +5746,6 @@ def test_stack(): @with_seed() -@unittest.skip("Flaky test https://github.com/apac...
Re-enables test_dropout (#<I>)
py
diff --git a/root_numpy/tests/test_tree.py b/root_numpy/tests/test_tree.py index <HASH>..<HASH> 100644 --- a/root_numpy/tests/test_tree.py +++ b/root_numpy/tests/test_tree.py @@ -39,11 +39,17 @@ def test_list_trees(): assert_equal(trees, ['ntuple']) # Multiple key cycles of the same tree with temp() as r...
list_trees: test with subdirectory
py
diff --git a/services/datalad/tests/test_history.py b/services/datalad/tests/test_history.py index <HASH>..<HASH> 100644 --- a/services/datalad/tests/test_history.py +++ b/services/datalad/tests/test_history.py @@ -1,5 +1,6 @@ import falcon import json +import pygit2 from .dataset_fixtures import * from datalad_s...
test: Add coverage for history API format
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -115,12 +115,11 @@ setup( 'rez': \ ['rezconfig'] + \ ['README*'] + \ - find_files('plugins', '*.yapsy-plugin') + \ find_files('_sys', '*.csh') + \ find_fi...
+ Fix up some install time errors and install template Doxyfile in correct location.
py
diff --git a/torequests/utils.py b/torequests/utils.py index <HASH>..<HASH> 100644 --- a/torequests/utils.py +++ b/torequests/utils.py @@ -275,7 +275,10 @@ class Regex(object): self.allow_duplicated = allow_duplicated def register(self, pattern, obj, **kwargs): - self.container.append((re.compile...
Regex class support multi-pattern binding
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ __version__ = '0.98pre' setup(name='visidata', version=__version__, - install_requires='python-dateutil openpyxl xlrd h5py psycopg2'.split(), + install_requires='python-dateutil openpyxl xlrd h...
Add pyshp to setup.py requirements
py
diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py index <HASH>..<HASH> 100644 --- a/sos/plugins/powerpc.py +++ b/sos/plugins/powerpc.py @@ -80,8 +80,9 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): if isPowerNV: self.add_copy_specs([ - "/proc/ppc64/...
[powerpc] collect selected file instead of entire directory We are collecting powerpc dir from debugfs which is causing some issues.. Also we don't need that dir data for debugging purpose... Hence removing that file. Also collecting selected files from /proc/ppc<I> directory instead of collecting entire directory.
py
diff --git a/django_extensions/management/commands/sync_media_s3.py b/django_extensions/management/commands/sync_media_s3.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/sync_media_s3.py +++ b/django_extensions/management/commands/sync_media_s3.py @@ -177,9 +177,8 @@ class Command(BaseCommand...
Changed path to use os.path.sep to support Windows.
py
diff --git a/livebridge/storages/base.py b/livebridge/storages/base.py index <HASH>..<HASH> 100644 --- a/livebridge/storages/base.py +++ b/livebridge/storages/base.py @@ -81,5 +81,7 @@ class BaseStorage(object): raise NotImplementedError() def get_control(self): - """Method for retrieving of cont...
Added missing docstring to BaseStorage.
py
diff --git a/tests/test_std.py b/tests/test_std.py index <HASH>..<HASH> 100644 --- a/tests/test_std.py +++ b/tests/test_std.py @@ -288,6 +288,17 @@ class TestConsul(object): time.sleep(40/1000.0) + def test_agent_register_enable_tag_override(self, consul_port): + c = consul.Consul(port=consul_por...
Added EnableTagOverride pytest
py
diff --git a/openquake/kvs/__init__.py b/openquake/kvs/__init__.py index <HASH>..<HASH> 100644 --- a/openquake/kvs/__init__.py +++ b/openquake/kvs/__init__.py @@ -49,6 +49,16 @@ def get_keys(regexp): return get_client().keys(regexp) +def mget(keys): + return get_client().mget(keys) + + +def mget_decoded(key...
Added mget() and mget_decoded() helper functions. Former-commit-id: <I>e8acb6e<I>dfe4d<I>ce4b5e<I>f0fa9e<I>e
py
diff --git a/zappa/middleware.py b/zappa/middleware.py index <HASH>..<HASH> 100644 --- a/zappa/middleware.py +++ b/zappa/middleware.py @@ -175,7 +175,10 @@ class ZappaWSGIMiddleware(object): for kvp in kvps: kvp = kvp.strip() if 'expires' in kvp.lower(): - ...
Support both 2 and 4 digit year formats in cookies
py
diff --git a/otree_redwood/mixins.py b/otree_redwood/mixins.py index <HASH>..<HASH> 100644 --- a/otree_redwood/mixins.py +++ b/otree_redwood/mixins.py @@ -30,10 +30,14 @@ class SubsessionSilosMixin(models.Model): class Meta: abstract = True - def group_randomly_in_silos(self, groups_per_silo, fixed_i...
change mixins.group_randomly_in_silos to take 'number of silos' instead of 'groups per silo'
py
diff --git a/atrcopy.py b/atrcopy.py index <HASH>..<HASH> 100755 --- a/atrcopy.py +++ b/atrcopy.py @@ -322,8 +322,18 @@ class RawSectorsSegment(DefaultSegment): class IndexedByteSegment(DefaultSegment): def __init__(self, byte_order, bytes, **kwargs): - data = bytes[byte_order] - DefaultSegment.__...
Workaround for numpy treating indexed arrays as copies: operate on original array using indexes
py
diff --git a/tests/iarm/test_parsing.py b/tests/iarm/test_parsing.py index <HASH>..<HASH> 100644 --- a/tests/iarm/test_parsing.py +++ b/tests/iarm/test_parsing.py @@ -50,5 +50,9 @@ class TestArmValidation(TestArm): with self.assertRaises(iarm.exceptions.ValidationError): self.interp.evaluate(' BAD...
Added regression test for `B .`
py
diff --git a/safe_qgis/tools/wizard_dialog.py b/safe_qgis/tools/wizard_dialog.py index <HASH>..<HASH> 100644 --- a/safe_qgis/tools/wizard_dialog.py +++ b/safe_qgis/tools/wizard_dialog.py @@ -326,7 +326,7 @@ class WizardDialog(QtGui.QDialog, Ui_WizardDialogBase): self.global_default_data = metadata.global_defau...
[IFCW] Update the wizard to the recent API changes
py
diff --git a/crosscat/utils/geweke_utils.py b/crosscat/utils/geweke_utils.py index <HASH>..<HASH> 100644 --- a/crosscat/utils/geweke_utils.py +++ b/crosscat/utils/geweke_utils.py @@ -316,6 +316,8 @@ def plot_diagnostic_data(forward_diagnostics_data, diagnostics_data_list, map(pylab.plot, kl_series_list) pylab...
temporarily fix y-limits of kl plot
py
diff --git a/aiogram/types/chat.py b/aiogram/types/chat.py index <HASH>..<HASH> 100644 --- a/aiogram/types/chat.py +++ b/aiogram/types/chat.py @@ -76,7 +76,25 @@ class Chat(base.TelegramObject): if self.type == ChatType.PRIVATE: return f"tg://user?id={self.id}" - return f'https://t.me/{se...
Update Chat method and get_link method fix
py
diff --git a/claripy/ast/base.py b/claripy/ast/base.py index <HASH>..<HASH> 100644 --- a/claripy/ast/base.py +++ b/claripy/ast/base.py @@ -985,7 +985,7 @@ def simplify(e): else: # Copy some parameters (that should really go to the Annotation backend) s._uninitialized = e.uninitialized - if...
Fix simplification into BVS from not BVS breaking the fix
py
diff --git a/django_extensions/management/modelviz.py b/django_extensions/management/modelviz.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/modelviz.py +++ b/django_extensions/management/modelviz.py @@ -12,6 +12,7 @@ import datetime import os import six +import django from django.db.models.fiel...
Resolve "render() must be called with a dict..." in modelviz.py
py
diff --git a/eli5/keras/explain_prediction.py b/eli5/keras/explain_prediction.py index <HASH>..<HASH> 100644 --- a/eli5/keras/explain_prediction.py +++ b/eli5/keras/explain_prediction.py @@ -25,7 +25,6 @@ and heatmap image for a target. def explain_prediction_keras(estimator, # type: Model ...
Remove mentions of target_names (not implemented)
py
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index <HASH>..<HASH> 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -435,7 +435,7 @@ class easy_install(Command): self.pth_file = None PYTHONPATH = os.environ.get('PY...
Use filter(None) for brevity
py
diff --git a/sos/plugins/apport.py b/sos/plugins/apport.py index <HASH>..<HASH> 100644 --- a/sos/plugins/apport.py +++ b/sos/plugins/apport.py @@ -25,5 +25,12 @@ class Apport(Plugin, DebianPlugin, UbuntuPlugin): def setup(self): self.add_copy_spec("/etc/apport/*") + self.add_copy_spec("/var/lib/w...
[apport] Add information on specific crashes The whoopsie ID let's us look the machine up on errors.ubuntu.com for crash reports. Partial output from /var/crash let's us better know what crashdumps the user has without uploading all of them.
py
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -14,7 +14,8 @@ except ImportError: mpl = None import param -from ...core import Store, HoloMap, Overlay, Dynam...
Bokeh Elements only send data once if completely static
py
diff --git a/riak/transports/transport.py b/riak/transports/transport.py index <HASH>..<HASH> 100644 --- a/riak/transports/transport.py +++ b/riak/transports/transport.py @@ -35,7 +35,7 @@ class RiakTransport(object): Returns a random client identifier """ return 'py_%s' % base64.b64encode( -...
Turn a seemingly random base-<I> value into an understandable hex value.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup( name='pycannon', - version='0.2.0', + version='0.3.0', packages=find_packages(), install_requires=[ 'requests',
Bumped version to <I>.
py
diff --git a/sessionprofile/backends/db.py b/sessionprofile/backends/db.py index <HASH>..<HASH> 100644 --- a/sessionprofile/backends/db.py +++ b/sessionprofile/backends/db.py @@ -11,6 +11,9 @@ class SessionProfileStore(Base): """ def save_session(self, request): + if not hasattr(request, 'user'): + ...
Fix for requests that have no user attribute
py
diff --git a/panoramisk/fast_agi.py b/panoramisk/fast_agi.py index <HASH>..<HASH> 100644 --- a/panoramisk/fast_agi.py +++ b/panoramisk/fast_agi.py @@ -171,8 +171,11 @@ class Application(dict): encoding=self.default_encoding) try: yield from route(...
Avoid double exception logging because log.exception() already logs the stacktrace
py
diff --git a/tmdbsimple/changes.py b/tmdbsimple/changes.py index <HASH>..<HASH> 100644 --- a/tmdbsimple/changes.py +++ b/tmdbsimple/changes.py @@ -17,7 +17,7 @@ class Changes(TMDB): """ Changes functionality. - See: http://docs.themoviedb.apiary.io/#changes + See: https://developers.themoviedb.org/3/c...
Update changes.py Deprecated changes url.
py
diff --git a/tests/test_djangoclient.py b/tests/test_djangoclient.py index <HASH>..<HASH> 100644 --- a/tests/test_djangoclient.py +++ b/tests/test_djangoclient.py @@ -65,7 +65,7 @@ class DjangoClientDriverTest(BaseBrowserTests, IsElementPresentNoJSTest, unittes browser.quit() def test_cant_switch_to_fra...
tests/django: fix comments
py
diff --git a/pyang/translators/dsdl.py b/pyang/translators/dsdl.py index <HASH>..<HASH> 100644 --- a/pyang/translators/dsdl.py +++ b/pyang/translators/dsdl.py @@ -116,9 +116,6 @@ class DSDLTranslator(object): def schematron_assert(elem, cond, err_msg=None): """Install <sch:assert> under `elem`. - - ...
Updated comment that contradicted code in schematron_assert method.
py
diff --git a/samples/RecurringTask.py b/samples/RecurringTask.py index <HASH>..<HASH> 100755 --- a/samples/RecurringTask.py +++ b/samples/RecurringTask.py @@ -7,7 +7,7 @@ This application demonstrates doing something at a regular interval. import sys from bacpypes.debugging import bacpypes_debugging, ModuleLogger -...
this example doesn't need a configuration file
py
diff --git a/serfclient/client.py b/serfclient/client.py index <HASH>..<HASH> 100644 --- a/serfclient/client.py +++ b/serfclient/client.py @@ -13,16 +13,26 @@ class SerfClient(object): self.connection.handshake() def event(self, name, payload, coalesce=True): + """ + Send an event to the c...
Added some documentation for the methods we have
py
diff --git a/ceph_deploy/tests/unit/util/test_arg_validators.py b/ceph_deploy/tests/unit/util/test_arg_validators.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/tests/unit/util/test_arg_validators.py +++ b/ceph_deploy/tests/unit/util/test_arg_validators.py @@ -99,3 +99,30 @@ class TestHostName(object): h...
add some tests for the dumb subnet validator
py
diff --git a/helperlibs/bio/seqio.py b/helperlibs/bio/seqio.py index <HASH>..<HASH> 100644 --- a/helperlibs/bio/seqio.py +++ b/helperlibs/bio/seqio.py @@ -27,6 +27,8 @@ except ImportError: def _get_seqtype_from_ext(handle): if isinstance(handle, basestring): name = handle + elif hasattr(handle, 'filen...
seqio: Support guessing the filetype from Flask FileStores
py
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -2104,7 +2104,7 @@ class Client: file_part += 1 if progress: - progress(file_part * part_si...
Fix progress going over <I>%
py
diff --git a/scoop/launch/__init__.py b/scoop/launch/__init__.py index <HASH>..<HASH> 100644 --- a/scoop/launch/__init__.py +++ b/scoop/launch/__init__.py @@ -233,7 +233,7 @@ class Host(object): self.log.info("Zombie process(es) possibly left on " "host {0}!".format(self.h...
Made cleanup compatible with (t)csh shells
py
diff --git a/slack/rtm/client.py b/slack/rtm/client.py index <HASH>..<HASH> 100644 --- a/slack/rtm/client.py +++ b/slack/rtm/client.py @@ -10,6 +10,7 @@ import inspect import signal from typing import Optional, Callable, DefaultDict from ssl import SSLContext +from threading import current_thread, main_thread # T...
Allow running RTM over a thread When trying to start a RTM connection over a thread a RuntimeError appears: RuntimeError: set_wakeup_fd only works in main thread This change allows it.
py
diff --git a/pyontutils/ontload.py b/pyontutils/ontload.py index <HASH>..<HASH> 100755 --- a/pyontutils/ontload.py +++ b/pyontutils/ontload.py @@ -262,6 +262,8 @@ def scigraph_build(zip_location, git_remote, org, git_local, branch, commit, if not os.path.exists(local): repo = Repo.clone_from(remote + '....
ontload handle case where SciGraph folder exists but is empty
py
diff --git a/tests/settings.py b/tests/settings.py index <HASH>..<HASH> 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -15,6 +15,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'sundial', 'tests.test_fields', + 'tests.test_forms', ] SILENCED_SYSTEM_CHECKS = ['1_7.W001']
Fixed a deprecation warning by making sure a test app is installed.
py
diff --git a/shinken/util.py b/shinken/util.py index <HASH>..<HASH> 100644 --- a/shinken/util.py +++ b/shinken/util.py @@ -31,9 +31,12 @@ except ImportError: from shinken.macroresolver import MacroResolver #from memoized import memoized - -stdout_encoding = sys.stdout.encoding -safe_stdout = (stdout_encoding == 'UT...
Fix : nosetest is not happy about sys.stdout and encoding.
py
diff --git a/core/graph.py b/core/graph.py index <HASH>..<HASH> 100755 --- a/core/graph.py +++ b/core/graph.py @@ -103,7 +103,7 @@ def plotFCM(data, channel_names, kind='histogram', ax=None, x = data[channel_names[0]] if len(x): - pHandle = x.hist(ax = ax, **kwargs) + pHandle =...
changed pandas hist to matplotlib hist to get references to histogram patches
py
diff --git a/cumulusci/tasks/bulkdata/load.py b/cumulusci/tasks/bulkdata/load.py index <HASH>..<HASH> 100644 --- a/cumulusci/tasks/bulkdata/load.py +++ b/cumulusci/tasks/bulkdata/load.py @@ -136,10 +136,15 @@ class LoadData(BaseSalesforceApiTask, SqlAlchemyMixin): sql = f"""BEGIN TRANSACTION; UPDA...
load setes Account.Name as blank + only inserts non-person account Contact records; TODO: Update Contact Id table with person account contact IDs
py
diff --git a/glad/lang/c/loader/gl.py b/glad/lang/c/loader/gl.py index <HASH>..<HASH> 100644 --- a/glad/lang/c/loader/gl.py +++ b/glad/lang/c/loader/gl.py @@ -213,12 +213,14 @@ class OpenGLCLoader(BaseLoader): def write_header(self, fobj): fobj.write(_OPENGL_HEADER_START) + written = set() ...
c: Fix issue with headers having GLES1 and OpenGL generated, related #<I>.
py
diff --git a/gui/test_riabclipper.py b/gui/test_riabclipper.py index <HASH>..<HASH> 100644 --- a/gui/test_riabclipper.py +++ b/gui/test_riabclipper.py @@ -16,10 +16,15 @@ __date__ = '20/01/2011' __copyright__ = ('Copyright 2012, Australia Indonesia Facility for ' 'Disaster Reduction') - +import uni...
Fixed scaling test that broke when density keywords were changed. It is now robust by setting the expected keyword rather than relying on those in the test data
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -3074,7 +3074,8 @@ def append(name, sources=None, source_hashes=None, defaults=None, - context=None): + context=None, + ...
Add option in file.append to ignore_whitespace. When appending content to a file, salt will try to search for that content first. During this operation whitespace is ignored. This option allows to override this bahavior. Fixes #<I>.
py
diff --git a/marshmallow/schema.py b/marshmallow/schema.py index <HASH>..<HASH> 100644 --- a/marshmallow/schema.py +++ b/marshmallow/schema.py @@ -589,13 +589,10 @@ class BaseSchema(base.SchemaABC): """Update fields based on the passed in object.""" # if only __init__ param is specified, only return t...
Schema.py - only respects exclude I did make an issue a week ago but couldn't resist to try out this pull request.
py
diff --git a/tests/test_stl.py b/tests/test_stl.py index <HASH>..<HASH> 100644 --- a/tests/test_stl.py +++ b/tests/test_stl.py @@ -89,6 +89,25 @@ class STLTests(g.unittest.TestCase): except BaseException: return raise ValueError("Shouldn't export empty scenes!") + + def...
Add test for STL vertex order
py
diff --git a/src/tests/streamcorpus_pipeline/test_clean_html.py b/src/tests/streamcorpus_pipeline/test_clean_html.py index <HASH>..<HASH> 100644 --- a/src/tests/streamcorpus_pipeline/test_clean_html.py +++ b/src/tests/streamcorpus_pipeline/test_clean_html.py @@ -19,6 +19,8 @@ def test_make_clean_html_nyt(): stable...
asserting that at least in this test data, the lxml.html.clean.Cleaner removes <script tags
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ long_description = ('Ariane CLIP3 (client python 3) is the python implementation ' + IRC on freenode #ariane.echinopsii') setup(name='ariane_clip3', - version='0.1.2', + versi...
[ACC-<I>] new beta version
py
diff --git a/searx/webapp.py b/searx/webapp.py index <HASH>..<HASH> 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -148,6 +148,14 @@ def stats(): stats = get_engines_stats() return render('stats.html', stats=stats) +@app.route('/robots.txt', methods=['GET']) +def robots(): + return Response("""Use...
[enh] robots.txt added
py
diff --git a/sievelib/tests/parser.py b/sievelib/tests/parser.py index <HASH>..<HASH> 100644 --- a/sievelib/tests/parser.py +++ b/sievelib/tests/parser.py @@ -49,13 +49,13 @@ class SieveTest(unittest.TestCase): class AdditionalCommands(SieveTest): def test_add_command(self): + self.assertRaises(sievelib....
changed test_add_command to check for UnknownCommand before injection
py
diff --git a/allennlp/common/configuration.py b/allennlp/common/configuration.py index <HASH>..<HASH> 100644 --- a/allennlp/common/configuration.py +++ b/allennlp/common/configuration.py @@ -478,7 +478,7 @@ VOCAB_CONFIG: Config = Config([ default_value=False, comment="whether to ...
fix type in vocab config (#<I>)
py
diff --git a/client/main.py b/client/main.py index <HASH>..<HASH> 100644 --- a/client/main.py +++ b/client/main.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python +# -*- coding: utf-8-*- import yaml import sys import speaker
Add shebang and PEP <I> source encoding to main.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,6 @@ import os import sys -import requests -from requests.compat import is_py2 - try: from setuptools import setup except ImportError: @@ -19,7 +16,7 @@ os.environ['PYTHONDONTWRITEBYTECODE'] = '1' setup( ...
porting to python3, just needed to ensure requests was installed it looks like
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ install_requires = [ "python-dateutil>=2.2", "pytz>=2014.2", ] -if sys.version_info.major < 3: +if sys.version_info < (3, 0): install_requires.append("dnspython>=1.11.1") else: install_requ...
<I> needs to die.
py
diff --git a/mir_eval/beat.py b/mir_eval/beat.py index <HASH>..<HASH> 100644 --- a/mir_eval/beat.py +++ b/mir_eval/beat.py @@ -29,7 +29,7 @@ def trim_beats(beats, min_beat_time=5.): Trimmed beat array. ''' # Remove beats before min_beat_time - return beats[beats > min_beat_time] + return be...
Should not be removing beats exactly at the boundary to be consistent with docstring and beat evaluation toolbox
py
diff --git a/pyani/anim.py b/pyani/anim.py index <HASH>..<HASH> 100644 --- a/pyani/anim.py +++ b/pyani/anim.py @@ -236,7 +236,10 @@ def construct_nucmer_cmdline( fname1, fname2 = Path(fname1), Path(fname2) # Compile commands - # Nested output folders to avoid N^2 scaling in files-per-folder: + # Neste...
May have to make two levels of output dir
py
diff --git a/tests/pytests/integration/states/test_file.py b/tests/pytests/integration/states/test_file.py index <HASH>..<HASH> 100644 --- a/tests/pytests/integration/states/test_file.py +++ b/tests/pytests/integration/states/test_file.py @@ -1146,6 +1146,7 @@ def test_recurse( assert test_tempdir.join...
skip tests on Windows since it does not support symlinks
py
diff --git a/gns3server/handlers/api/controller/symbol_handler.py b/gns3server/handlers/api/controller/symbol_handler.py index <HASH>..<HASH> 100644 --- a/gns3server/handlers/api/controller/symbol_handler.py +++ b/gns3server/handlers/api/controller/symbol_handler.py @@ -49,7 +49,7 @@ class SymbolHandler: contr...
Catch FileNotFound error for builtin symbols if erase them from disk Fix #<I>
py
diff --git a/pyflunearyou/__version__.py b/pyflunearyou/__version__.py index <HASH>..<HASH> 100644 --- a/pyflunearyou/__version__.py +++ b/pyflunearyou/__version__.py @@ -1,2 +1,2 @@ """Define a version constant.""" -__version__ = '0.0.2' +__version__ = '0.1.0'
Bumped version to <I>
py
diff --git a/src/sentry_plugins/slack/plugin.py b/src/sentry_plugins/slack/plugin.py index <HASH>..<HASH> 100644 --- a/src/sentry_plugins/slack/plugin.py +++ b/src/sentry_plugins/slack/plugin.py @@ -1,6 +1,5 @@ from __future__ import absolute_import -from django.core.urlresolvers import reverse from sentry import h...
fix: Update URL for Slack plugin (#<I>) Not a Django route anymore
py
diff --git a/law/workflow/remote.py b/law/workflow/remote.py index <HASH>..<HASH> 100644 --- a/law/workflow/remote.py +++ b/law/workflow/remote.py @@ -429,15 +429,17 @@ class BaseRemoteWorkflowProxy(BaseWorkflowProxy): n_parallel = sys.maxsize if task.parallel_jobs < 0 else task.parallel_jobs new_jobs...
Continue scanning and pruning the whole waiting list list when submitting (#<I>)
py
diff --git a/eli5/sklearn/explain_weights.py b/eli5/sklearn/explain_weights.py index <HASH>..<HASH> 100644 --- a/eli5/sklearn/explain_weights.py +++ b/eli5/sklearn/explain_weights.py @@ -191,7 +191,7 @@ def explain_linear_classifier_weights(clf, vec=None, top=_TOP, target_names=None @explain_weights.register(ExtraTree...
vectorizer is not required for explain_rf_feature_importance
py
diff --git a/spyderlib/widgets/ipython.py b/spyderlib/widgets/ipython.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/ipython.py +++ b/spyderlib/widgets/ipython.py @@ -39,6 +39,7 @@ class IPythonControlWidget(QTextEdit, mixins.BaseEditMixin, mixins.TracebackLinksMixin.__init__(self) mixins.Ins...
IPython Console/Bug: Trying to find more than one result of a given text was failing - A traceback was generated complaining about a missing found_results attribute. - Adding it solved the problem
py
diff --git a/superset/views/core.py b/superset/views/core.py index <HASH>..<HASH> 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -2049,9 +2049,9 @@ class Superset(BaseSupersetView): pass dashboard(dashboard_id=dash.id) - dash_edit_perm = check_ownership(dash, raise_if...
[Dashboard] Allow Superset Alpha, Gamma users to save dashboard as a copy (#<I>)
py
diff --git a/_pydev_runfiles/pydev_runfiles_nose.py b/_pydev_runfiles/pydev_runfiles_nose.py index <HASH>..<HASH> 100644 --- a/_pydev_runfiles/pydev_runfiles_nose.py +++ b/_pydev_runfiles/pydev_runfiles_nose.py @@ -127,6 +127,8 @@ class PydevPlugin(Plugin): from io import StringIO s = Stri...
Wrong traceback after failing unittest with nosetest and Python3. Fixes PyDev-<I>
py
diff --git a/flowcraft/generator/engine.py b/flowcraft/generator/engine.py index <HASH>..<HASH> 100644 --- a/flowcraft/generator/engine.py +++ b/flowcraft/generator/engine.py @@ -103,7 +103,6 @@ process_map = { "trimmomatic": readsqc.Trimmomatic, "true_coverage": readsqc.TrueCoverage, "viral_...
removed duplicated abyss in process_map
py
diff --git a/django_afip/models.py b/django_afip/models.py index <HASH>..<HASH> 100644 --- a/django_afip/models.py +++ b/django_afip/models.py @@ -126,7 +126,12 @@ class Receipt(models.Model): 'Receipt', ) - # optionals + # Not implemented: optionals + + # These two values are stored in the rec...
Avoid receipts being orphans before they have a batch
py
diff --git a/riak/tests/test_datatypes.py b/riak/tests/test_datatypes.py index <HASH>..<HASH> 100644 --- a/riak/tests/test_datatypes.py +++ b/riak/tests/test_datatypes.py @@ -17,6 +17,9 @@ class DatatypeUnitTests(object): def op(self, dtype): raise NotImplementedError + def check_op_output(self, op):...
Stub out check_op_output as suggested
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -7,11 +7,16 @@ except ImportError: from setuptools import setup, find_packages # NOQA from setuptools.command.test import test as TestCommand import os.path +import warnings def read_file(filepath): - with open...
Workaround when README.rst can't find
py
diff --git a/filer/utils/files.py b/filer/utils/files.py index <HASH>..<HASH> 100644 --- a/filer/utils/files.py +++ b/filer/utils/files.py @@ -16,7 +16,14 @@ def handle_upload(request): # the file is stored raw in the request is_raw = True filename = request.GET.get('qqfile', False) or reques...
fix #<I> backward compatibility to django-<I>, while using the new method on newer versions
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from aldryn_apphooks_config import __version__ REQUIREMENTS = [ 'django-appdata>=0.2.0', 'django-cms>=3.4.5' -], +] CLASSIFIERS = [ @@ -24,7 +24,7 @@ CLASSIFIERS = [ 'Programming Language :: P...
Fixed typo in setup.py file
py
diff --git a/pyads/ads.py b/pyads/ads.py index <HASH>..<HASH> 100644 --- a/pyads/ads.py +++ b/pyads/ads.py @@ -1041,7 +1041,7 @@ class Connection(object): # read only until null-termination character value = bytearray(data).split(b"\0", 1)[0].decode("utf-8") - ...
Fix notification decorator when type is None The default value of the type argument is None, so this value should also be supported in the actual conversion. issubclass() throws a TypeError when the argument is None. Also, this offers a simple option to just get the raw value as byte array.
py
diff --git a/spyder/config/user.py b/spyder/config/user.py index <HASH>..<HASH> 100644 --- a/spyder/config/user.py +++ b/spyder/config/user.py @@ -19,7 +19,6 @@ import re import os.path as osp import shutil import time -import sys # Local imports from spyder.config.base import (get_conf_path, get_home_dir,
Deleted unused sys import
py
diff --git a/newsplease/__init__.py b/newsplease/__init__.py index <HASH>..<HASH> 100644 --- a/newsplease/__init__.py +++ b/newsplease/__init__.py @@ -39,7 +39,11 @@ class NewsPlease: # assume utf-8 encoding = 'utf-8' - html = raw_stream.decode(encoding, errors=decode_errors) + ...
Fallback to utf-8 when document gives unknown encoding
py
diff --git a/timeside/core/tools/test_samples.py b/timeside/core/tools/test_samples.py index <HASH>..<HASH> 100644 --- a/timeside/core/tools/test_samples.py +++ b/timeside/core/tools/test_samples.py @@ -196,6 +196,9 @@ class gst_BuildSample(object): #Gst.Element.link_many(*pipe_elements) numpy_src.app...
[core] connect all pipeline elements in test_samples.py
py
diff --git a/test/test_plyfile.py b/test/test_plyfile.py index <HASH>..<HASH> 100644 --- a/test/test_plyfile.py +++ b/test/test_plyfile.py @@ -87,6 +87,11 @@ def verify(ply0, ply1): verify_1d(prop0, prop1) + verify_comments(el0[k].comments, el1[k].comments) + + verify_comments(ply0.comments, ...
Compare comments and obj_info in unit tests
py
diff --git a/tests/basics/ordereddict1.py b/tests/basics/ordereddict1.py index <HASH>..<HASH> 100644 --- a/tests/basics/ordereddict1.py +++ b/tests/basics/ordereddict1.py @@ -9,8 +9,19 @@ except ImportError: sys.exit() d = OrderedDict([(10, 20), ("b", 100), (1, 2)]) +print(len(d)) print(list(d.keys())) pr...
tests/basics: Add further tests for OrderedDict.
py
diff --git a/faker/providers/date_time/__init__.py b/faker/providers/date_time/__init__.py index <HASH>..<HASH> 100644 --- a/faker/providers/date_time/__init__.py +++ b/faker/providers/date_time/__init__.py @@ -360,7 +360,7 @@ class Provider(BaseProvider): start_date = cls._parse_date_time(start_date, tzinfo=t...
Update __init__.py Using timestamp doesn't allow you to generate a date before <I>. In fact, you can even put in (-<I>y,-<I>y) as parameters and get a runtime error.
py
diff --git a/tests/test_utils.py b/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -162,10 +162,10 @@ class TestCache(object): @pytest.fixture def key(self): - if six.PY3: - return 'tests.test_utils.<function TestCache.fn.<locals>.fn '...
#N/A: Replace `PY3` checks with `PY2` checks
py
diff --git a/chatterbot/__init__.py b/chatterbot/__init__.py index <HASH>..<HASH> 100644 --- a/chatterbot/__init__.py +++ b/chatterbot/__init__.py @@ -3,7 +3,7 @@ ChatterBot is a machine learning, conversational dialog engine. """ from .chatterbot import ChatBot -__version__ = '1.0.0a2' +__version__ = '1.0.0a3' __...
Increment package version to <I>a3
py
diff --git a/salt/modules/ssh.py b/salt/modules/ssh.py index <HASH>..<HASH> 100644 --- a/salt/modules/ssh.py +++ b/salt/modules/ssh.py @@ -1133,7 +1133,7 @@ def user_keys(user=None, pubfile=None, prvfile=None): if os.path.exists(fn_): try: with salt.utils.fopen(fn_, 'r...
Remove trailing newline in ssh.user_keys() (#<I>)
py
diff --git a/examples/read-ow.py b/examples/read-ow.py index <HASH>..<HASH> 100644 --- a/examples/read-ow.py +++ b/examples/read-ow.py @@ -79,6 +79,7 @@ class OWExample: def _data_updated(self, mem): print('Updated id={}'.format(mem.id)) + print('\tAddr : {}'.format(mem.addr)) print...
Added printing address of 1-wire memory to example (closes #<I>)
py
diff --git a/bcloud/UploadPage.py b/bcloud/UploadPage.py index <HASH>..<HASH> 100644 --- a/bcloud/UploadPage.py +++ b/bcloud/UploadPage.py @@ -734,6 +734,7 @@ class UploadPage(Gtk.Box): tree_iters.append(self.liststore.get_iter(row.path)) for tree_iter in tree_iters: if tree_iter:...
Fixed: remove task from upload db when remove-button is clicked
py
diff --git a/zeno/test/testing_utils.py b/zeno/test/testing_utils.py index <HASH>..<HASH> 100644 --- a/zeno/test/testing_utils.py +++ b/zeno/test/testing_utils.py @@ -3,6 +3,8 @@ import os import sys import fcntl +import tempfile + from ioflo.base.consoling import getConsole from zeno.common.stacked import HA @...
PortDispensor now uses a system-supplied temporary directory and an intelligent filename when one is not provided to it.
py
diff --git a/spinoff/util/logging.py b/spinoff/util/logging.py index <HASH>..<HASH> 100644 --- a/spinoff/util/logging.py +++ b/spinoff/util/logging.py @@ -233,8 +233,8 @@ def _do_write(level, *args, **kwargs): elif caller_fn: caller_fn._r_logstring = logstring - lognam...
Some more graceful handling of logging with only .pyc available
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ with open("rb/__init__.py", "rb") as f: ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1)) ) -install_requires = ["redis>=2.6,<3.4"] +install_requires = ["redis>=2.6,<3.5,!=3...
upgrade(redis-py): Allow using redis-py@<I> (#<I>) `redis-py@<I>` has some important concurrency fixes around pool management and doesn't have any breaking changes. That said `<I>` has a bug that might potentially be breaking. So this change relaxes the version requirement but excludes the unsafe `<I>` version. See...
py
diff --git a/openxc/sources/usb.py b/openxc/sources/usb.py index <HASH>..<HASH> 100644 --- a/openxc/sources/usb.py +++ b/openxc/sources/usb.py @@ -49,7 +49,7 @@ class UsbDataSource(BytestreamDataSource): if not self.device: raise DataSourceError("Couldn't find a USB product 0x%x from vendor 0x%x...
Add missing parens to log statement.
py
diff --git a/salt/utils/aws.py b/salt/utils/aws.py index <HASH>..<HASH> 100644 --- a/salt/utils/aws.py +++ b/salt/utils/aws.py @@ -24,7 +24,6 @@ import re # Import Salt libs import salt.utils.xmlutil as xml from salt._compat import ElementTree as ET -import salt.ext.six as six # Import 3rd-party libs try:
salt/utils/aws.py: Removed salt.ext.six import as the code that used it got removed.
py
diff --git a/src/feat/database/tools.py b/src/feat/database/tools.py index <HASH>..<HASH> 100644 --- a/src/feat/database/tools.py +++ b/src/feat/database/tools.py @@ -99,7 +99,7 @@ def push_initial_data(connection, overwrite=False, push_design_docs=True): for name in set(a.keys()).intersection(set(b....
Fix feat-dbload reporting differences in design documents filter functions.
py
diff --git a/fedmsg/text/__init__.py b/fedmsg/text/__init__.py index <HASH>..<HASH> 100644 --- a/fedmsg/text/__init__.py +++ b/fedmsg/text/__init__.py @@ -65,6 +65,7 @@ from fedmsg.text.default import DefaultProcessor class ProcessorsNotInitialized(Exception): def __iter__(self): raise self + __len__ ...
Add __len__ to the ProcessorsNotInitialized exception
py
diff --git a/msrest/serialization.py b/msrest/serialization.py index <HASH>..<HASH> 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -129,9 +129,11 @@ class Model(object): Remove the polymorphic key from the initial data. """ for subtype_key in cls.__dict__.get('_subtype_...
Fix serialisation from dict with escape
py
diff --git a/tornado/web.py b/tornado/web.py index <HASH>..<HASH> 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -70,6 +70,7 @@ import stat import sys import time import tornado +import traceback import types import urllib import urlparse @@ -663,11 +664,16 @@ class RequestHandler(object): If this e...
add text tracebacks on <I>s when in debug mode
py
diff --git a/uliweb/core/SimpleFrame.py b/uliweb/core/SimpleFrame.py index <HASH>..<HASH> 100644 --- a/uliweb/core/SimpleFrame.py +++ b/uliweb/core/SimpleFrame.py @@ -330,7 +330,7 @@ def get_apps(apps_dir, include_apps=None, settings_file='settings.ini', local_se local_inifile = norm_path(os.path.join(apps_dir, lo...
fix issue of "when local_settings.ini have no GLOBAL section,uliweb will exit with exception"
py
diff --git a/aiortc/contrib/media.py b/aiortc/contrib/media.py index <HASH>..<HASH> 100644 --- a/aiortc/contrib/media.py +++ b/aiortc/contrib/media.py @@ -219,6 +219,7 @@ class MediaPlayer: self.__log_debug('Starting worker thread') self.__thread_quit = threading.Event() self.__th...
[media player] give the thread a name
py
diff --git a/tests/python/unittest/test_numpy_op.py b/tests/python/unittest/test_numpy_op.py index <HASH>..<HASH> 100644 --- a/tests/python/unittest/test_numpy_op.py +++ b/tests/python/unittest/test_numpy_op.py @@ -6420,6 +6420,7 @@ def test_np_linalg_det(): @with_seed() @use_np +@pytest.mark.skip(reason='https://g...
Update test_numpy_op.py (#<I>)
py