diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/spinoff/actor/_actor.py b/spinoff/actor/_actor.py index <HASH>..<HASH> 100644 --- a/spinoff/actor/_actor.py +++ b/spinoff/actor/_actor.py @@ -379,7 +379,7 @@ class _BaseCell(_HubBound): if name in self._children: raise NameConflict("Unable to spawn actor at path %s; actor %r a...
Made generated names of actors more readable by including the class name
py
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index <HASH>..<HASH> 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -1964,20 +1964,11 @@ class FixedWidthReader(object): isinstance(colspec[1], int) ): raise AssertionError() - if compat.PY3: - ...
CLN: Remove py3 next method from FixedWidthReader It's unnecessary - handle wraps this instead.
py
diff --git a/bingraphvis/angr/content.py b/bingraphvis/angr/content.py index <HASH>..<HASH> 100644 --- a/bingraphvis/angr/content.py +++ b/bingraphvis/angr/content.py @@ -389,7 +389,7 @@ class AngrKbFunctionDetails(Content): #self.add_line(data, "block_addrs", str(map(safehex, fn.block_addrs))) - se...
Fixup: workaround, calling convention was missing, removed it from debug output
py
diff --git a/horizon/templatetags/shellfilter.py b/horizon/templatetags/shellfilter.py index <HASH>..<HASH> 100644 --- a/horizon/templatetags/shellfilter.py +++ b/horizon/templatetags/shellfilter.py @@ -10,11 +10,15 @@ # License for the specific language governing permissions and limitations # under the License. -f...
[Django <I>] Update template.base.Library() import Adds a wrapper for Django <I> for the usage of the Library() function, as the import path has changed. Change-Id: I<I>c<I>bfaef6bc<I>c<I>d2e6a<I>cf<I>d<I>f<I>e Partially-implements: blueprint drop-dj<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( version = '2.0', description = 'VADER Sentiment Analysis. VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to se...
updated for pip PyPi packaging
py
diff --git a/salt/states/virtualenv_mod.py b/salt/states/virtualenv_mod.py index <HASH>..<HASH> 100644 --- a/salt/states/virtualenv_mod.py +++ b/salt/states/virtualenv_mod.py @@ -111,7 +111,7 @@ def managed(name, requirements, __env__ ) # Check if the master version has changed. -...
Issue #<I>: Add a conditional check. - Avoid AttributeError exception when the requirements file don't exists.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,9 @@ classifiers = [ 'Topic :: Communications:: Email', ] +# Depends +# pyproxyfs +# cmdln setup( name = "md", version = "0.1", @@ -24,8 +27,8 @@ setup( url = "http://github.com/nicferrier/md"...
change package to mdlib, add details about depends even tho there doesn't seem to be a way to resolve them.
py
diff --git a/bin/VV_main.py b/bin/VV_main.py index <HASH>..<HASH> 100755 --- a/bin/VV_main.py +++ b/bin/VV_main.py @@ -307,5 +307,5 @@ file.write('</BODY>\n') file.write('</HTML>\n') file.close() -print "LIVV Completed. Go to " + options.html_link + "/livv_kit_main.html to view results" +print "LIVV Completed. Go t...
Nope, that wasn't the problem. Undoing the last commit. git-svn-id: <URL>
py
diff --git a/salt/config.py b/salt/config.py index <HASH>..<HASH> 100644 --- a/salt/config.py +++ b/salt/config.py @@ -294,6 +294,8 @@ def include_config(include, orig_path, verbose): include_config = {} for path in include: + # Allow for includes like ~/foo + path = os.path.expanduser(path) ...
Allow for home based includes, ie, `~/.include-dir`.
py
diff --git a/sortinghat/_version.py b/sortinghat/_version.py index <HASH>..<HASH> 100644 --- a/sortinghat/_version.py +++ b/sortinghat/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.7.17" +__version__ = "0.7.18"
Update version number to <I>
py
diff --git a/telemetry/telemetry/core/chrome/cros_util.py b/telemetry/telemetry/core/chrome/cros_util.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/core/chrome/cros_util.py +++ b/telemetry/telemetry/core/chrome/cros_util.py @@ -84,6 +84,11 @@ def NavigateLogin(browser_backend): 'extension passed thr...
Startup window on chromeos has been disabled. BUG=<I> TEST=manual NOTRY=True Review URL: <URL>
py
diff --git a/lib/emir/recipes/auxiliary.py b/lib/emir/recipes/auxiliary.py index <HASH>..<HASH> 100644 --- a/lib/emir/recipes/auxiliary.py +++ b/lib/emir/recipes/auxiliary.py @@ -103,8 +103,7 @@ class BiasRecipe(BaseRecipe): cdata = [] try: for frame in rinput.obresult.frames: - ...
Use DataFrame.open instead of fits.open() in BiasRecipe
py
diff --git a/script/create-dist.py b/script/create-dist.py index <HASH>..<HASH> 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -124,13 +124,17 @@ def copy_license(): def strip_binaries(): - if get_target_arch() == 'arm': - strip = 'arm-linux-gnueabihf-strip' - else: - strip = 'strip' ...
Strip ffmpeg in zip file
py
diff --git a/canmatrix/exportjson.py b/canmatrix/exportjson.py index <HASH>..<HASH> 100644 --- a/canmatrix/exportjson.py +++ b/canmatrix/exportjson.py @@ -45,7 +45,12 @@ def exportJson(db, filename, **options): mode = 'w' else: mode = 'wb' - f = open(filename, mode) + + if type(filename).__...
attempt/example solution for issue #<I>
py
diff --git a/src/sos/step_executor.py b/src/sos/step_executor.py index <HASH>..<HASH> 100755 --- a/src/sos/step_executor.py +++ b/src/sos/step_executor.py @@ -1071,7 +1071,7 @@ class Base_Step_Executor: results = self.wait_for_tasks(self.task_manager._submitted_tasks) # # report task - ...
Do not write any report in dryrun mode
py
diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py index <HASH>..<HASH> 100644 --- a/tests/test_config_parser.py +++ b/tests/test_config_parser.py @@ -817,7 +817,7 @@ class TestConfigParser(object): x = ${x.y} """ ) - assert config.get("x.y") == {'y': 1} + ...
test_self_ref_substitution_dict_path_hide: assertion is wrong
py
diff --git a/pages/search_indexes.py b/pages/search_indexes.py index <HASH>..<HASH> 100644 --- a/pages/search_indexes.py +++ b/pages/search_indexes.py @@ -9,6 +9,7 @@ import datetime class PageIndex(SearchIndex): """Search index for pages content.""" text = CharField(document=True, use_template=True) + ti...
Add a title attribute to the SearchIndex for pages. This is useful when displaying a list of search results because we can display the title of the result without hitting the database to actually pull the page.
py
diff --git a/django_ajax/shortcuts.py b/django_ajax/shortcuts.py index <HASH>..<HASH> 100644 --- a/django_ajax/shortcuts.py +++ b/django_ajax/shortcuts.py @@ -3,12 +3,16 @@ Shortcuts """ from __future__ import unicode_literals +import logging + from django.conf import settings from django.http.response import Htt...
Improved Logging Exceptions now also get logged to django's native logging handler with a proper traceback. Exception popups that occur when DEBUG = False no longer show exception cause.
py
diff --git a/zdesk/zdesk.py b/zdesk/zdesk.py index <HASH>..<HASH> 100644 --- a/zdesk/zdesk.py +++ b/zdesk/zdesk.py @@ -228,7 +228,7 @@ class Zendesk(ZendeskAPI): raise ZendeskError( response.content, response.status_code, response) - if response.content.strip()...
Check that our response is json before we attempt to parse as json
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,11 +23,16 @@ setup( include_package_data=True, classifiers=[ 'Environment :: Web Environment', + 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approve...
Add classifiers to setup.py.
py
diff --git a/src/holodeck/sensors.py b/src/holodeck/sensors.py index <HASH>..<HASH> 100644 --- a/src/holodeck/sensors.py +++ b/src/holodeck/sensors.py @@ -416,7 +416,9 @@ class RotationSensor(HolodeckSensor): class VelocitySensor(HolodeckSensor): - + """Returns the x, y, and z velocity of the agent. + + ...
Add some missing sensor docstrings
py
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py index <HASH>..<HASH> 100644 --- a/salt/cli/__init__.py +++ b/salt/cli/__init__.py @@ -122,6 +122,10 @@ class SaltCMD(object): else: opts['json_out'] = False + if opts['return']: + if opts['timeout'] == 5: + ...
Set a timeout of when returners are called
py
diff --git a/msk/repo_action.py b/msk/repo_action.py index <HASH>..<HASH> 100644 --- a/msk/repo_action.py +++ b/msk/repo_action.py @@ -81,7 +81,7 @@ class SkillData(GlobalContext): default_branch = self.repo_git.symbolic_ref('refs/remotes/origin/HEAD') self.repo_git.reset(default_branch, hard=True) ...
Change skill branch naming convention to not use slashes If a branch called either `add` or `upgrade` exists, it will cause errors
py
diff --git a/sciunit/base.py b/sciunit/base.py index <HASH>..<HASH> 100644 --- a/sciunit/base.py +++ b/sciunit/base.py @@ -100,6 +100,7 @@ class SciUnit(Versioned): self.unpicklable = [] # Attributes that cannot or should not be pickled. unpicklable = [] + _url = None def __getstat...
Added generic url attribute to base class
py
diff --git a/luigi/lock.py b/luigi/lock.py index <HASH>..<HASH> 100644 --- a/luigi/lock.py +++ b/luigi/lock.py @@ -63,7 +63,7 @@ def getpcmd(pid): # https://github.com/spotify/luigi/pull/1876 try: with open('/proc/{0}/cmdline'.format(pid), 'r') as fh: - return fh.read().rep...
Fix decode to utf8 when reading /proc/*/cmdline Fixes an issue where utf8 cmdline args where not consistently decoded in py<I> on Linux. See also <URL>
py
diff --git a/tasklib/lazy.py b/tasklib/lazy.py index <HASH>..<HASH> 100644 --- a/tasklib/lazy.py +++ b/tasklib/lazy.py @@ -172,10 +172,10 @@ class LazyUUIDTaskSet(object): return self._uuids > set(t['uuid'] for t in other) def issubset(self, other): - return all([task in other for task in self]) ...
Refactor issubset/issuperset in LazyUUIDTaskSet The two methods now use the comparison operators defined by `set`
py
diff --git a/sos/jupyter/test/utils.py b/sos/jupyter/test/utils.py index <HASH>..<HASH> 100644 --- a/sos/jupyter/test/utils.py +++ b/sos/jupyter/test/utils.py @@ -35,12 +35,6 @@ from queue import Empty KM = None KC = None -try: - import feather - feather - with_feather = True -except ImportError: - with...
Move with_feather to test_kernel of R kernel Former-commit-id: d<I>fd<I>eff<I>c<I>b<I>cd<I>c8e7ca<I>b
py
diff --git a/tests/test_compare.py b/tests/test_compare.py index <HASH>..<HASH> 100644 --- a/tests/test_compare.py +++ b/tests/test_compare.py @@ -526,7 +526,7 @@ class TestCompareApi(TestData): if sys.version.startswith("3"): # import joblib dependencies - from sklearn.externals.jobl...
Replace sklearn.joblib by joblib
py
diff --git a/xltable/__init__.py b/xltable/__init__.py index <HASH>..<HASH> 100644 --- a/xltable/__init__.py +++ b/xltable/__init__.py @@ -99,6 +99,8 @@ Classes .. autoclass:: Expression +.. autoclass:: ArrayExpression + .. autoclass:: Cell .. autoclass:: Column @@ -116,7 +118,7 @@ Classes .. autoclass:: Valu...
expose ArrayExpression class to external API
py
diff --git a/mbuild/tests/test_compound.py b/mbuild/tests/test_compound.py index <HASH>..<HASH> 100755 --- a/mbuild/tests/test_compound.py +++ b/mbuild/tests/test_compound.py @@ -861,7 +861,7 @@ class TestCompound(BaseTest): assert pybel_mol.OBMol.NumAtoms() == 8 assert pybel_mol.OBMol.NumBonds() == ...
Modify test for off by <I> error
py
diff --git a/gui/is_help_base.py b/gui/is_help_base.py index <HASH>..<HASH> 100644 --- a/gui/is_help_base.py +++ b/gui/is_help_base.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'is_help_base.ui' # -# Created: Wed Mar 21 14:31:11 2012 +# Created: Wed Mar 28 11:30:12 2012 # by: PyQt4 ...
fixed bug where close button does not dispose of the help dialog
py
diff --git a/scraper/code_gov/__init__.py b/scraper/code_gov/__init__.py index <HASH>..<HASH> 100644 --- a/scraper/code_gov/__init__.py +++ b/scraper/code_gov/__init__.py @@ -99,6 +99,20 @@ def _license_obj(license): return obj +def _prune_dict_null_str(dictionary): + """ + Prune the "None" or emptry str...
First pass at pruning out invalid values from resulting dictionary
py
diff --git a/claripy/frontends/replacement_frontend.py b/claripy/frontends/replacement_frontend.py index <HASH>..<HASH> 100644 --- a/claripy/frontends/replacement_frontend.py +++ b/claripy/frontends/replacement_frontend.py @@ -24,6 +24,9 @@ class ReplacementFrontend(ConstrainedFrontend): if not isinstance(old,...
some minor improvements and bugfixes in replacement frontend
py
diff --git a/raiden/tests/utils/tester_client.py b/raiden/tests/utils/tester_client.py index <HASH>..<HASH> 100644 --- a/raiden/tests/utils/tester_client.py +++ b/raiden/tests/utils/tester_client.py @@ -181,7 +181,13 @@ class FilterTesterMock(object): def event(self, event): # TODO: implement OR - ...
Attaching events for none topics as well
py
diff --git a/visidata/vdtui.py b/visidata/vdtui.py index <HASH>..<HASH> 100755 --- a/visidata/vdtui.py +++ b/visidata/vdtui.py @@ -1705,6 +1705,15 @@ def clipstr(s, dispw): ## Built-in sheets +class TextColumn(Column): + 'TextColumn always uses the terminal width' + @property + def width(self): + r...
TextSheet now uses TextColumn which is always windowWidth
py
diff --git a/dynamic_rest/fields.py b/dynamic_rest/fields.py index <HASH>..<HASH> 100644 --- a/dynamic_rest/fields.py +++ b/dynamic_rest/fields.py @@ -67,6 +67,7 @@ class DynamicField(fields.Field): def __init__( self, + source=None, requires=None, deferred=False, field...
first argument of a field should be source
py
diff --git a/salt/modules/apache.py b/salt/modules/apache.py index <HASH>..<HASH> 100755 --- a/salt/modules/apache.py +++ b/salt/modules/apache.py @@ -3,12 +3,23 @@ Support for Apache ''' import re +import salt.utils __outputter__ = { 'signal': 'txt', } +def __virtual__(): + ''' + Only load the m...
only run the apache module if apachectl is installed
py
diff --git a/thumbor/url_composer.py b/thumbor/url_composer.py index <HASH>..<HASH> 100644 --- a/thumbor/url_composer.py +++ b/thumbor/url_composer.py @@ -40,6 +40,10 @@ def main(): print 'Error: The image argument is mandatory. For more information type thumbor-url -h' return + image_url = argum...
Fixes in the url generation
py
diff --git a/test/tabletmanager.py b/test/tabletmanager.py index <HASH>..<HASH> 100755 --- a/test/tabletmanager.py +++ b/test/tabletmanager.py @@ -95,12 +95,11 @@ class TestTabletManager(unittest.TestCase): tablet_62344.start_vttablet() # make sure the query service is started right away - result, _ = ut...
Replacing use of 'vtctl Query' with direct vttablet connection.
py
diff --git a/src/toil/provisioners/aws/awsProvisioner.py b/src/toil/provisioners/aws/awsProvisioner.py index <HASH>..<HASH> 100644 --- a/src/toil/provisioners/aws/awsProvisioner.py +++ b/src/toil/provisioners/aws/awsProvisioner.py @@ -499,8 +499,14 @@ class AWSProvisioner(AbstractProvisioner): ...
Separate behavior for node objects and instance objects
py
diff --git a/sen/docker_backend.py b/sen/docker_backend.py index <HASH>..<HASH> 100644 --- a/sen/docker_backend.py +++ b/sen/docker_backend.py @@ -744,12 +744,20 @@ class DockerBackend: self._containers = None self._images = None # displayed images self._all_images = None # docker images -a...
support docker-py-2.x
py
diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index <HASH>..<HASH> 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -38,6 +38,7 @@ JETSON_TX1 = 'JETSON_TX1' JETSON_TX2 = 'JETSON_TX2' JETSON_XAVIER = '...
Add support for NVIDIA Jetson NX
py
diff --git a/mt940/processors.py b/mt940/processors.py index <HASH>..<HASH> 100644 --- a/mt940/processors.py +++ b/mt940/processors.py @@ -50,7 +50,7 @@ def mBank_set_transaction_code(transactions, tag, tag_dict, *args): return tag_dict -iph_id_re = re.compile(' ID IPH: X*(?P<iph_id>\d{0,14});') +iph_id_re = r...
made sure to use r"" for regex strings
py
diff --git a/spikeextractors/extractors/nwbextractors/nwbextractors.py b/spikeextractors/extractors/nwbextractors/nwbextractors.py index <HASH>..<HASH> 100644 --- a/spikeextractors/extractors/nwbextractors/nwbextractors.py +++ b/spikeextractors/extractors/nwbextractors/nwbextractors.py @@ -77,11 +77,6 @@ class NwbRecor...
Update nwbextractors.py
py
diff --git a/talon/quotations.py b/talon/quotations.py index <HASH>..<HASH> 100644 --- a/talon/quotations.py +++ b/talon/quotations.py @@ -51,7 +51,7 @@ RE_ON_DATE_SMB_WROTE = re.compile( # Polish u'napisał', # Dutch - 'schreef','verzond' + 'schreef','verzond...
Another submission to a dutch variation
py
diff --git a/cleverhans_tutorials/mnist_tutorial_jsma.py b/cleverhans_tutorials/mnist_tutorial_jsma.py index <HASH>..<HASH> 100644 --- a/cleverhans_tutorials/mnist_tutorial_jsma.py +++ b/cleverhans_tutorials/mnist_tutorial_jsma.py @@ -188,11 +188,11 @@ def mnist_tutorial_jsma(train_start=0, train_end=60000, test_start=...
compute average distortion I think that when compute the average distortion, we shouldn't include the targets we didn't generate. (For instance, for a sample image of number 9, we didn't produce target image of class '9', so the distortion-0-shouldn't take part in the distortion computation)
py
diff --git a/indra/assemblers/html/assembler.py b/indra/assemblers/html/assembler.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/html/assembler.py +++ b/indra/assemblers/html/assembler.py @@ -237,7 +237,7 @@ class HtmlAssembler(object): 'names': tl_names} if tl_...
Make top-label agent gen depend on grouping.
py
diff --git a/arctic/date/_mktz.py b/arctic/date/_mktz.py index <HASH>..<HASH> 100644 --- a/arctic/date/_mktz.py +++ b/arctic/date/_mktz.py @@ -32,6 +32,7 @@ def mktz(zone=None): """ if zone is None: zone = tzlocal.get_localzone().zone + zone = unicode(zone, 'ascii') tz = dateutil.tz.gettz(zon...
Ensure TZ is always unicode since TZ's read from Arctic are in unicode
py
diff --git a/stanza/utils/training/common.py b/stanza/utils/training/common.py index <HASH>..<HASH> 100644 --- a/stanza/utils/training/common.py +++ b/stanza/utils/training/common.py @@ -45,6 +45,11 @@ def main(run_treebank, model_dir, model_name): treebanks = [] for treebank in command_args.treebanks: + ...
Cut off a trailing /
py
diff --git a/tracext/github.py b/tracext/github.py index <HASH>..<HASH> 100644 --- a/tracext/github.py +++ b/tracext/github.py @@ -4,10 +4,8 @@ import re from trac.config import ListOption, Option from trac.core import Component, implements -from trac.resource import ResourceNotFound from trac.timeline.api import ...
NoSuchChangeset is a subclass of ResourceNotFound.
py
diff --git a/great_expectations/cli/cli.py b/great_expectations/cli/cli.py index <HASH>..<HASH> 100644 --- a/great_expectations/cli/cli.py +++ b/great_expectations/cli/cli.py @@ -210,10 +210,11 @@ def render(render_object): @cli.command() @click.argument('datasource_name') -@click.option('--max_data_assets', '-m', ...
Align default number of data assets to profile
py
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index <HASH>..<HASH> 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -2088,9 +2088,7 @@ class ScriptWriter: warnings.warn("Use get_header", DeprecationWarning, stacklevel=2) ...
Replace redundant code with call of that code.
py
diff --git a/test_dj_database_url.py b/test_dj_database_url.py index <HASH>..<HASH> 100644 --- a/test_dj_database_url.py +++ b/test_dj_database_url.py @@ -110,6 +110,20 @@ class DatabaseTestSuite(unittest.TestCase): url = dj_database_url.config(engine=engine) assert url['ENGINE'] == engine + ...
Added tests for CONN_MAX_AGE
py
diff --git a/canvasapi/account.py b/canvasapi/account.py index <HASH>..<HASH> 100644 --- a/canvasapi/account.py +++ b/canvasapi/account.py @@ -624,7 +624,7 @@ class Account(CanvasObject): <https://canvas.instructure.com/doc/api/logins.html#method.pseudonyms.index>`_ :rtype: :class:`canvasapi.paginat...
include a newline at the end of the file
py
diff --git a/scruffy/state.py b/scruffy/state.py index <HASH>..<HASH> 100644 --- a/scruffy/state.py +++ b/scruffy/state.py @@ -5,8 +5,10 @@ State Classes for storing a program's state. """ import os +import atexit import yaml + try: from sqlalchemy import create_engine, Column, Integer, String from sql...
Save state atexit (#<I>) Have State do one final save at exit
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -42,7 +42,7 @@ master_doc = 'index' # General information about the project. project = 'KryPy' -copyright = '2013, André Gaul' +copyright = u'2013, André Gaul' # The version info for the project you're d...
fix utf-8 mojibake in doc with python2
py
diff --git a/src/toil/lib/bioio.py b/src/toil/lib/bioio.py index <HASH>..<HASH> 100644 --- a/src/toil/lib/bioio.py +++ b/src/toil/lib/bioio.py @@ -13,6 +13,8 @@ # limitations under the License. from __future__ import absolute_import + +import socket import sys import os import logging @@ -29,11 +31,6 @@ import x...
Include hostname in every log message (resolves #<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ # Always prefer setuptools over distutils -from setuptools import setup +from setuptools import setup, find_packages # To use a consistent encoding from os import path @@ -18,12 +18,12 @@ setup( # Versio...
Edited setup.py, forgot to use find_packages()
py
diff --git a/jsonrpcserver/dispatcher.py b/jsonrpcserver/dispatcher.py index <HASH>..<HASH> 100644 --- a/jsonrpcserver/dispatcher.py +++ b/jsonrpcserver/dispatcher.py @@ -45,7 +45,7 @@ class Requests(object): #pylint:disable=too-few-public-methods extra={'http_code': response.http_status, ...
Optionally pass request_type to Requests init Allows subclasses to specify which request type to instantiate and process. Continuing the journey to allow asynchronous processing (#<I>)
py
diff --git a/vispy_volume/vispy_widget.py b/vispy_volume/vispy_widget.py index <HASH>..<HASH> 100644 --- a/vispy_volume/vispy_widget.py +++ b/vispy_volume/vispy_widget.py @@ -7,24 +7,9 @@ from glue.external.qt import QtGui, QtCore from vispy import scene from vispy.color import get_colormaps, BaseColormap -__all__ ...
Import colormaps from colormaps module
py
diff --git a/twython/streaming/api.py b/twython/streaming/api.py index <HASH>..<HASH> 100644 --- a/twython/streaming/api.py +++ b/twython/streaming/api.py @@ -10,6 +10,7 @@ Twitter API calls. from .. import __version__ from ..compat import json, is_py3 +from ..helpers import _transparent_params from .types import ...
Fixes #<I> and forgot to def chunk_size
py
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index <HASH>..<HASH> 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -148,12 +148,16 @@ class SFTPClient (BaseSFTP): is ignored, since SSH treats all files as binary. The C{'U'} flag is supported in a compatible way....
[project @ Arch-1:<EMAIL><I>-master-shake%paramiko--dev--1--patch-3] make SFTPClient.file an alias for SFTPClient.open. clean up docs a little, and make 'file' an alias for 'open'. this is how python is heading in general.
py
diff --git a/pythainlp/tokenize/tcc.py b/pythainlp/tokenize/tcc.py index <HASH>..<HASH> 100644 --- a/pythainlp/tokenize/tcc.py +++ b/pythainlp/tokenize/tcc.py @@ -40,9 +40,6 @@ ct[ะาำ]? แccc์ โctะ [เ-ไ]ct -ๆ -ฯลฯ -ฯ """.replace( "c", "[ก-ฮ]" )
Remove ๆ, ฯลฯ, ฯ from TCC grammar. As requested by @wannaphongcom
py
diff --git a/txkoji/connection.py b/txkoji/connection.py index <HASH>..<HASH> 100644 --- a/txkoji/connection.py +++ b/txkoji/connection.py @@ -374,8 +374,8 @@ class Connection(object): Calls "listTasks" XML-RPC. - :param opts: ``dict``. Eg. {'state': [task_states.OPEN]} - :param queryOpts: ``...
connection: add types to listTasks docstring
py
diff --git a/example/tutorial_bipedalwalker_a3c_continuous_action.py b/example/tutorial_bipedalwalker_a3c_continuous_action.py index <HASH>..<HASH> 100644 --- a/example/tutorial_bipedalwalker_a3c_continuous_action.py +++ b/example/tutorial_bipedalwalker_a3c_continuous_action.py @@ -130,7 +130,7 @@ class ACNet(object): ...
note that both AC and A3C examples here used Value-functions not Q-function
py
diff --git a/eliot/_action.py b/eliot/_action.py index <HASH>..<HASH> 100644 --- a/eliot/_action.py +++ b/eliot/_action.py @@ -827,7 +827,9 @@ def preserve_context(f): restore context and call given function when the resulting callable is run. This allows continuing the action context within a different threa...
Nicer mechanism for ensuring single call.
py
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index <HASH>..<HASH> 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. -__version__ =...
Update Pyrogram to <I>
py
diff --git a/fabric/main.py b/fabric/main.py index <HASH>..<HASH> 100644 --- a/fabric/main.py +++ b/fabric/main.py @@ -10,8 +10,13 @@ from paramiko import __version__ as paramiko from . import __version__ as fabric -program = Program( +class Fab(Program): + def print_version(self): + super(Fab, self).pr...
Oh hey we can just do this via subclassing YAY CLASSES
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -147,10 +147,12 @@ if write_version: setup(name=DISTNAME, version=FULLVERSION, - description=DESCRIPTION, - long_description=LONG_DESCRIPTION, + license=LICENSE, author=AUTHOR, author_ema...
Fix classifiers and license in setup.py
py
diff --git a/model/HardwareSource.py b/model/HardwareSource.py index <HASH>..<HASH> 100644 --- a/model/HardwareSource.py +++ b/model/HardwareSource.py @@ -416,7 +416,7 @@ class HardwareSource(Observable.Broadcaster): return self.__should_abort with self.__channel_states_mutex: are_all...
Simplify a loop in hardware source. svn r<I>
py
diff --git a/ib_insync/util.py b/ib_insync/util.py index <HASH>..<HASH> 100644 --- a/ib_insync/util.py +++ b/ib_insync/util.py @@ -330,7 +330,9 @@ def patchAsyncio(): try: step_orig(self, exc) finally: - if curr_task is not None: + if curr_task is None: + ...
small fix for sync awaiting on results
py
diff --git a/tests/apps/http/external.py b/tests/apps/http/external.py index <HASH>..<HASH> 100644 --- a/tests/apps/http/external.py +++ b/tests/apps/http/external.py @@ -55,7 +55,7 @@ class ExternalBase(TestHttpClientBase): data = response.json() self.assertEqual(data['files'], files) - def test...
critical logs in rpc are now just errors. Removed unused code in utils internet
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ version_string = '0.3.2' # Parse requirements # parse_requirements() returns generator of pip.req.InstallRequirement objects -install_reqs = parse_requirements('./requirements.txt', session=pip.download.PipS...
Tweaked parse requirements path.
py
diff --git a/salt/modules/svn.py b/salt/modules/svn.py index <HASH>..<HASH> 100644 --- a/salt/modules/svn.py +++ b/salt/modules/svn.py @@ -19,7 +19,7 @@ def __virtual__(): Only load if svn is installed ''' if utils.which('svn'): - return 'svn' + return True return False
Not renaming, return a boolean in `__virtual__()`.
py
diff --git a/aiosqlite/core.py b/aiosqlite/core.py index <HASH>..<HASH> 100644 --- a/aiosqlite/core.py +++ b/aiosqlite/core.py @@ -20,7 +20,6 @@ from typing import ( Callable, Generator, Iterable, - Literal, Optional, Type, Union, @@ -259,11 +258,11 @@ class Connection(Thread): ...
remove Literal to restore compatibility with py<I>
py
diff --git a/python_modules/dagster/dagster/core/errors.py b/python_modules/dagster/dagster/core/errors.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster/dagster/core/errors.py +++ b/python_modules/dagster/dagster/core/errors.py @@ -44,8 +44,8 @@ This value can be a: - Field - Python primitive types...
In config error, reference Shape instead of dict Test Plan: bk Reviewers: alangenfeld Reviewed By: alangenfeld Differential Revision: <URL>
py
diff --git a/numina/recipes/requirements.py b/numina/recipes/requirements.py index <HASH>..<HASH> 100644 --- a/numina/recipes/requirements.py +++ b/numina/recipes/requirements.py @@ -32,7 +32,7 @@ class Requirement(object): :param optional: Make the Requirement optional ''' - def __init__(self, n...
Created lookup function for Requirement
py
diff --git a/gwpy/plot/tests/test_plot.py b/gwpy/plot/tests/test_plot.py index <HASH>..<HASH> 100644 --- a/gwpy/plot/tests/test_plot.py +++ b/gwpy/plot/tests/test_plot.py @@ -47,7 +47,7 @@ class TestPlot(FigureTestBase): def test_init_empty(self): plot = self.FIGURE_CLASS(geometry=(2, 2)) assert ...
gwpy.plot: update use of get_geometry addresses deprecationwarning from matplotlib
py
diff --git a/treenode/models.py b/treenode/models.py index <HASH>..<HASH> 100644 --- a/treenode/models.py +++ b/treenode/models.py @@ -174,7 +174,7 @@ class TreeNodeModel(models.Model): return self.__class__.objects.filter(pk__in=self.get_ancestors_pks()) def get_breadcrumbs(self, attr=None, cache=True)...
Improved `get_breadcrumbs` performance.
py
diff --git a/release/config.py b/release/config.py index <HASH>..<HASH> 100644 --- a/release/config.py +++ b/release/config.py @@ -42,6 +42,8 @@ class Config(object): self.upload_status: Dict[str, ActionStatus] = defaultdict(lambda: ActionStatus.NOT_STARTED) def _to_js_version(self, v: str) -> str: + ...
compute correct JS version for full releases (#<I>)
py
diff --git a/oauthlib/oauth.py b/oauthlib/oauth.py index <HASH>..<HASH> 100644 --- a/oauthlib/oauth.py +++ b/oauthlib/oauth.py @@ -21,8 +21,8 @@ SIGNATURE_TYPE_AUTH_HEADER = u'AUTH_HEADER' SIGNATURE_TYPE_QUERY = u'QUERY' -class OAuthClient(object): - """An OAuth client used to sign OAuth requests""" +class OAut...
Rename class to reflect spec version it implements
py
diff --git a/salt/utils/timed_subprocess.py b/salt/utils/timed_subprocess.py index <HASH>..<HASH> 100644 --- a/salt/utils/timed_subprocess.py +++ b/salt/utils/timed_subprocess.py @@ -27,7 +27,7 @@ class TimedProc(object): elif self.stdin is not None: # Translate a newline submitted as '\n' on the ...
Encode stdin to subproc calls for Py3 compat We need a bytes-like object for stdin for a subprocess in python3
py
diff --git a/synapse/eventbus.py b/synapse/eventbus.py index <HASH>..<HASH> 100644 --- a/synapse/eventbus.py +++ b/synapse/eventbus.py @@ -184,7 +184,7 @@ class EventBus(object): # explicitly release the handlers self._syn_funcs.clear() - self._fini_funcs.clear() + del self._fini_funcs...
Python <I> does not support .clear() on list objects. Use del instead.
py
diff --git a/neal/sampler.py b/neal/sampler.py index <HASH>..<HASH> 100644 --- a/neal/sampler.py +++ b/neal/sampler.py @@ -33,7 +33,7 @@ from six import itervalues, iteritems import neal.simulated_annealing as sa -__all__ = ["Neal", "SimulatedAnnealingSampler"] +__all__ = ["Neal", "SimulatedAnnealingSampler", "def...
Expose a function that estimates a good annealing beta range for a BQM
py
diff --git a/scripts/bcbio_nextgen_install.py b/scripts/bcbio_nextgen_install.py index <HASH>..<HASH> 100755 --- a/scripts/bcbio_nextgen_install.py +++ b/scripts/bcbio_nextgen_install.py @@ -252,7 +252,7 @@ if __name__ == "__main__": "sacCer3", "TAIR10", "WBcel235", "xenTro3", "Zv9", "...
Add hisat2 to the installable aligners.
py
diff --git a/hug/types.py b/hug/types.py index <HASH>..<HASH> 100644 --- a/hug/types.py +++ b/hug/types.py @@ -175,7 +175,7 @@ def accept(kind, doc=None, error_text=None, exception_handlers=empty.dict, accep accept_context=accept_context )(kind) -number = accept(int, 'A Whole number', 'Invalid whole num...
Use consistent casing in number type description
py
diff --git a/src/canmatrix/formats/xls.py b/src/canmatrix/formats/xls.py index <HASH>..<HASH> 100644 --- a/src/canmatrix/formats/xls.py +++ b/src/canmatrix/formats/xls.py @@ -421,7 +421,7 @@ def load(file, **options): if frame_id.endswith("xh"): new_frame.arbitration_id = canmatrix.Arbitra...
fix: xls is using the wrong number for arbitration id (#<I>)
py
diff --git a/betfairlightweight/streaming/cache.py b/betfairlightweight/streaming/cache.py index <HASH>..<HASH> 100644 --- a/betfairlightweight/streaming/cache.py +++ b/betfairlightweight/streaming/cache.py @@ -106,7 +106,7 @@ class RunnerBook: self.available_to_lay = Available(atl, 1) self.best_avail...
sp traded fix, order wrong and wrong way around vs api/site
py
diff --git a/lib/ansiblelint/rules/CommandsInsteadOfModulesRule.py b/lib/ansiblelint/rules/CommandsInsteadOfModulesRule.py index <HASH>..<HASH> 100644 --- a/lib/ansiblelint/rules/CommandsInsteadOfModulesRule.py +++ b/lib/ansiblelint/rules/CommandsInsteadOfModulesRule.py @@ -38,7 +38,8 @@ class CommandsInsteadOfModulesR...
rsync should be synchronize module Should suggest using synchronize instead of rsync Thanks to #<I>
py
diff --git a/multiqc/modules/slamdunk/slamdunk.py b/multiqc/modules/slamdunk/slamdunk.py index <HASH>..<HASH> 100644 --- a/multiqc/modules/slamdunk/slamdunk.py +++ b/multiqc/modules/slamdunk/slamdunk.py @@ -221,11 +221,11 @@ class MultiqcModule(BaseMultiqcModule): for fromBase in baseDict: for toB...
Slamdunk: Switched from has_key to in for Python 3 compatibility.
py
diff --git a/tests/pytests/functional/states/test_file.py b/tests/pytests/functional/states/test_file.py index <HASH>..<HASH> 100644 --- a/tests/pytests/functional/states/test_file.py +++ b/tests/pytests/functional/states/test_file.py @@ -77,7 +77,7 @@ def serve(port=8000, directory=None): s.serve_forever() -@...
Reduce scope of fixture and cleanup defuct process
py
diff --git a/holoviews/plotting/widgets/__init__.py b/holoviews/plotting/widgets/__init__.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/widgets/__init__.py +++ b/holoviews/plotting/widgets/__init__.py @@ -24,7 +24,7 @@ def escape_vals(vals, escape_numerics=True): for v in vals: if not isnumeric(...
Allowed using timedeltas in widgets (#<I>)
py
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/chart.py +++ b/holoviews/plotting/bokeh/chart.py @@ -42,13 +42,10 @@ class PointPlot(ElementPlot): cmap = self.style.get('palette', self.style.get('cmap', None)) ...
Removed unused variables in Bokeh PointPlot
py
diff --git a/aredis/connection.py b/aredis/connection.py index <HASH>..<HASH> 100755 --- a/aredis/connection.py +++ b/aredis/connection.py @@ -413,6 +413,8 @@ class BaseConnection: async def connect(self): try: await self._connect() + except aredis.compat.CancelledError: + r...
Reraise CancelledError in connect() (#<I>)
py
diff --git a/model_utils/tests/tests.py b/model_utils/tests/tests.py index <HASH>..<HASH> 100644 --- a/model_utils/tests/tests.py +++ b/model_utils/tests/tests.py @@ -1036,7 +1036,14 @@ class InheritanceManagerUsingModelsTests(TestCase): results = InheritanceManagerTestParent.objects.instance_of(InheritanceMan...
Add test that may not do anything. I'm not sure this test is actually useful: it's designed to show the interaction of select_subclasses and instance_of, but I don't think it adds much value.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ setup( author = 'John DeNero, David Culler, Alvin Wan', author_email = 'ds-instr@berkeley.edu', url = 'https://github.com/dsten/datascience', - download_url = 'https://github.com/github/dsten/tarball/0...
updpated setup.py
py
diff --git a/tests/test_misc.py b/tests/test_misc.py index <HASH>..<HASH> 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1,4 +1,3 @@ -import pickle import numpy as np import pytest import dynesty @@ -197,3 +196,28 @@ def test_results(): pass for k, v in res.asdict().items(): pass...
add a test of fully determinstic behaviour if identical rstate is passed (resolves #<I>)
py
diff --git a/angr/state_plugins/plugin.py b/angr/state_plugins/plugin.py index <HASH>..<HASH> 100644 --- a/angr/state_plugins/plugin.py +++ b/angr/state_plugins/plugin.py @@ -33,7 +33,8 @@ class SimStatePlugin(object): def merge(self, others, merge_conditions, common_ancestor=None): #pylint:disable=unused-argume...
Describe the merging and widening operations in the base Plugin docstrings
py
diff --git a/tests/test_main.py b/tests/test_main.py index <HASH>..<HASH> 100755 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -2626,7 +2626,18 @@ def test_auchenai_light_of_the_naaru(): naaru2.play(target=lightwarden) assert lightwarden.dead assert len(game.player1.field) == 2 - assert game.player1.field[...
Add a test for Light of the Naaru/Auchenai on full board
py
diff --git a/esptool.py b/esptool.py index <HASH>..<HASH> 100755 --- a/esptool.py +++ b/esptool.py @@ -424,8 +424,6 @@ class ESPLoader(object): if not wait_response: return - self._port.flush() - # tries to get a response until that response has the #...
Do not flush which might hang indefinitely during port detection
py